Skip to content

Commit

Permalink
Update ColorPicker-view.coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
MaherFa authored Jan 14, 2017
1 parent 31be75f commit ede1928
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ColorPicker-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@
EditorElement = Editor.getElement()

return unless EditorView
EditorRoot = EditorView

# Reset selection
@selection = null
Expand Down Expand Up @@ -353,11 +352,11 @@
_paneOffsetLeft = PaneView.offsetLeft

_editorOffsetTop = EditorView.parentNode.offsetTop
_editorOffsetLeft = EditorRoot.querySelector('.scroll-view').offsetLeft
_editorOffsetLeft = EditorView.querySelector('.scroll-view').offsetLeft
_editorScrollTop = EditorView.getScrollTop()

_lineHeight = Editor.getLineHeightInPixels()
_lineOffsetLeft = EditorRoot.querySelector('.line').offsetLeft
_lineOffsetLeft = EditorView.querySelector('.line').offsetLeft

# Center it on the middle of the selection range
# TODO: There can be lines over more than one row
Expand Down

0 comments on commit ede1928

Please sign in to comment.