Skip to content

Commit f3694a6

Browse files
committed
Merge pull request #95389 from Gaktan/graph_node_stretch_fix
Fix graph node stretch not taking titlebar into account
2 parents 98deb2a + 238859f commit f3694a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/graph_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void GraphNode::_resort() {
208208
// Avoid negative stretch space.
209209
stretch_diff = MAX(stretch_diff, 0);
210210

211-
available_stretch_space += stretch_diff - sb_panel->get_margin(SIDE_BOTTOM) - sb_panel->get_margin(SIDE_TOP);
211+
available_stretch_space += stretch_diff - sb_panel->get_margin(SIDE_BOTTOM) - sb_panel->get_margin(SIDE_TOP) - titlebar_min_size.height - sb_titlebar->get_minimum_size().height;
212212

213213
// Second pass, discard elements that can't be stretched, this will run while stretchable elements exist.
214214

0 commit comments

Comments
 (0)