mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Append spell check menu to body so it isn't hidden by PDF view resizer
This commit is contained in:
parent
184189fa3f
commit
2a69e185ce
2 changed files with 3 additions and 2 deletions
|
@ -216,8 +216,7 @@ define [
|
||||||
</div>
|
</div>
|
||||||
<div class="ace-editor-body"></div>
|
<div class="ace-editor-body"></div>
|
||||||
<div
|
<div
|
||||||
id="spellCheckMenu"
|
class="dropdown context-menu spell-check-menu"
|
||||||
class="dropdown context-menu"
|
|
||||||
ng-show="spellingMenu.open"
|
ng-show="spellingMenu.open"
|
||||||
ng-style="{top: spellingMenu.top, left: spellingMenu.left}"
|
ng-style="{top: spellingMenu.top, left: spellingMenu.left}"
|
||||||
ng-class="{open: spellingMenu.open}"
|
ng-class="{open: spellingMenu.open}"
|
||||||
|
|
|
@ -6,6 +6,8 @@ define [
|
||||||
|
|
||||||
class SpellCheckManager
|
class SpellCheckManager
|
||||||
constructor: (@$scope, @editor, @element) ->
|
constructor: (@$scope, @editor, @element) ->
|
||||||
|
$(document.body).append @element.find(".spell-check-menu")
|
||||||
|
|
||||||
@updatedLines = []
|
@updatedLines = []
|
||||||
@highlightedWordManager = new HighlightedWordManager(@editor)
|
@highlightedWordManager = new HighlightedWordManager(@editor)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue