Bläddra i källkod

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

tags/v0.14.0^2
Shaun 3 månader sedan
förälder
incheckning
e61cd864e6
2 ändrade filer med 3 tillägg och 0 borttagningar
  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 Visa fil

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

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

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


+ 1
- 0
src/client/ui/templates/context/styles.less Visa fil

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

.list {
width: 100%;


Laddar…
Avbryt
Spara