Resize diff view on editor view port change

This commit is contained in:
James Allen 2014-03-14 10:20:00 +00:00
parent b3096fc74e
commit 6701de796e
3 changed files with 7 additions and 1 deletions

View file

@ -121,7 +121,7 @@ define [
@aceEditor = aceEditor = AceEditor.edit("editor")
@on "resize", => @aceEditor.resize()
@ide.layoutManager.on "resize", => @aceEditor.resize()
@ide.layoutManager.on "resize", => @trigger "resize"
mode = window.userSettings.mode
theme = window.userSettings.theme

View file

@ -201,5 +201,8 @@ define [
else
@$changesAfter.hide()
resize: () ->
@aceEditor.resize()
return DiffView

View file

@ -19,6 +19,9 @@ define [
@ide.editor.on "change:doc", () =>
@hideEl()
@ide.editor.on "resize", () =>
@diffView?.resize()
@$el.find(".track-changes-close").on "click", (e) =>
e.preventDefault
@hide()