Fix graph node stretch not taking titlebar into account
This commit is contained in:
parent
5675c76461
commit
238859fe9d
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ void GraphNode::_resort() {
|
||||||
// Avoid negative stretch space.
|
// Avoid negative stretch space.
|
||||||
stretch_diff = MAX(stretch_diff, 0);
|
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.
|
// Second pass, discard elements that can't be stretched, this will run while stretchable elements exist.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue