Merge pull request #5555 from node-red/5544-reveal-position-fix

Include sidebar width in position calculation for reveal function
pull/5556/head
Nick O'Leary 2026-03-10 16:13:24 +00:00 committed by GitHub
commit 3d8d3e2fa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;