Append spell check menu to body so it isn't hidden by PDF view resizer

This commit is contained in:
James Allen 2014-10-27 14:51:28 +00:00
parent 184189fa3f
commit 2a69e185ce
2 changed files with 3 additions and 2 deletions

View file

@ -216,8 +216,7 @@ define [
</div>
<div class="ace-editor-body"></div>
<div
id="spellCheckMenu"
class="dropdown context-menu"
class="dropdown context-menu spell-check-menu"
ng-show="spellingMenu.open"
ng-style="{top: spellingMenu.top, left: spellingMenu.left}"
ng-class="{open: spellingMenu.open}"

View file

@ -6,6 +6,8 @@ define [
class SpellCheckManager
constructor: (@$scope, @editor, @element) ->
$(document.body).append @element.find(".spell-check-menu")
@updatedLines = []
@highlightedWordManager = new HighlightedWordManager(@editor)