Browse Source

bug #2015: the context menu no longer extends over the window boundary

tags/v0.14.0^2
Shaun 3 months ago
parent
commit
e61cd864e6
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      src/client/ui/templates/context/context.js
  2. +1
    -0
      src/client/ui/templates/context/styles.less

+ 2
- 0
src/client/ui/templates/context/context.js View File

@@ -68,6 +68,8 @@ define([
pos.top = e.detail.clientY; pos.top = e.detail.clientY;
} }


pos['max-height'] = window.innerHeight - pos.top - 10;

this.el this.el
.css(pos) .css(pos)
.show(); .show();


+ 1
- 0
src/client/ui/templates/context/styles.less View File

@@ -11,6 +11,7 @@
color: @white; color: @white;
text-align: center; text-align: center;
line-height: 15px; line-height: 15px;
overflow-y: auto;


.list { .list {
width: 100%; width: 100%;


Loading…
Cancel
Save