Editor updates lines when it is resized

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-05-10 11:08:47 -07:00
parent f6e9d99865
commit 22548141d7
2 changed files with 11 additions and 0 deletions

View File

@@ -210,6 +210,9 @@ class Editor extends View
else
@gutter.addClass('drop-shadow')
$(window).on "resize", =>
@updateLines()
afterAttach: (onDom) ->
return if @attached or not onDom
@attached = true