mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Resize diff view on editor view port change
This commit is contained in:
parent
b3096fc74e
commit
6701de796e
3 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -201,5 +201,8 @@ define [
|
|||
else
|
||||
@$changesAfter.hide()
|
||||
|
||||
resize: () ->
|
||||
@aceEditor.resize()
|
||||
|
||||
return DiffView
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue