Pārlūkot izejas kodu

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

tags/v0.14.0^2
Shaun pirms 3 mēnešiem
vecāks
revīzija
e61cd864e6
2 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

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

.list {
width: 100%;


Notiek ielāde…
Atcelt
Saglabāt