mirror of https://github.com/node-red/node-red.git
Merge pull request #5555 from node-red/5544-reveal-position-fix
Include sidebar width in position calculation for reveal functionpull/5556/head
commit
3d8d3e2fa9
|
|
@ -7761,7 +7761,7 @@ RED.view = (function() {
|
|||
if (node.type === "group" && !node.w && !node.h) {
|
||||
_redraw();
|
||||
}
|
||||
var screenSize = [chart[0].clientWidth/scaleFactor,chart[0].clientHeight/scaleFactor];
|
||||
var screenSize = [(chart[0].clientWidth - $("#red-ui-sidebar").width())/scaleFactor,chart[0].clientHeight/scaleFactor];
|
||||
var scrollPos = [chart.scrollLeft()/scaleFactor,chart.scrollTop()/scaleFactor];
|
||||
var cx = node.x;
|
||||
var cy = node.y;
|
||||
|
|
|
|||
Loading…
Reference in New Issue