mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Position popover properly on a scrolled page
Not needed in the core editor, but needed in the docs pages that can scroll
This commit is contained in:
parent
8d79deffb5
commit
7610353f07
@ -603,7 +603,7 @@ RED.popover = (function() {
|
||||
var panelWidth = panel.width();
|
||||
|
||||
var top = (targetHeight+pos.top) + offset[1];
|
||||
if (top+panelHeight > $(window).height()) {
|
||||
if (top+panelHeight-$(document).scrollTop() > $(window).height()) {
|
||||
top -= (top+panelHeight)-$(window).height() + 5;
|
||||
}
|
||||
if (top < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user