adapt to small pop menus (gcode)
This commit is contained in:
parent
db26bf7f28
commit
a2b87210eb
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,7 @@ export function opRender() {
|
|||
const brect = ev.target.getBoundingClientRect();
|
||||
const prect = parent.getBoundingClientRect();
|
||||
const Prect = poprec.div.getBoundingClientRect();
|
||||
const topmv = brect.top - prect.top - 20;
|
||||
const topmv = brect.top - prect.top - Math.min(50, Prect.height/5);
|
||||
const topnu = prect.top + topmv;
|
||||
const botof = innerHeight - (topnu + Prect.height);
|
||||
const offpx = botof < 0 ? topmv + botof : topmv;
|
||||
|
|
|
|||
Loading…
Reference in a new issue