diff options
author | Gaktan <igaktan@gmail.com> | 2024-08-11 15:31:51 +0200 |
---|---|---|
committer | Gaktan <igaktan@gmail.com> | 2024-09-08 17:59:50 +0200 |
commit | 238859fe9d33ac9fb92de059e9237b81f5e287f7 (patch) | |
tree | f5924b64bef3664f80dec93eae865dff42c521e0 | |
parent | 5675c76461e197d3929a1142cfb84ab1a76ac9dd (diff) | |
download | redot-engine-238859fe9d33ac9fb92de059e9237b81f5e287f7.tar.gz |
Fix graph node stretch not taking titlebar into account
-rw-r--r-- | scene/gui/graph_node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/graph_node.cpp b/scene/gui/graph_node.cpp index 72e59bfc8a..8f5023104a 100644 --- a/scene/gui/graph_node.cpp +++ b/scene/gui/graph_node.cpp @@ -208,7 +208,7 @@ void GraphNode::_resort() { // Avoid negative stretch space. stretch_diff = MAX(stretch_diff, 0); - available_stretch_space += stretch_diff - sb_panel->get_margin(SIDE_BOTTOM) - sb_panel->get_margin(SIDE_TOP); + 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; // Second pass, discard elements that can't be stretched, this will run while stretchable elements exist. |