Ver a proveniência

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

tags/v0.14.0^2
Shaun há 3 meses
ascendente
cometimento
e61cd864e6
2 ficheiros alterados com 3 adições e 0 eliminações
  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 Ver ficheiro

@@ -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 Ver ficheiro

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

.list {
width: 100%;


Carregando…
Cancelar
Guardar