mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
20d2722f04
refs https://github.com/TryGhost/Team/issues/2677 When opening a context menu close to the border of the window, the menu went outside the window. This PR updates the position mirror horizontally or vertically if the menu would go outside the window.
7 lines
398 B
Handlebars
7 lines
398 B
Handlebars
<div role="menu" class="gh-context-menu-container" {{did-insert this.setup}} data-open={{this.isOpen}} {{on "click" this.stopClicks}}>
|
|
<div class="gh-context-menu {{this.class}}" style={{this.style}}>
|
|
{{yield this this.selectionList}}
|
|
</div>
|
|
<div role="none" class="gh-context-menu-overlay" {{on "click" this.close}} {{on "contextmenu" this.onContextMenuOutside}}></div>
|
|
</div>
|