Fix layout of a TitleBar without controls

This commit is contained in:
Héctor Ramón Jiménez 2020-07-09 05:42:28 +02:00
parent ad19c1628d
commit 2f02ca3248

View file

@ -202,7 +202,7 @@ where
vec![title_layout, controls_layout],
)
} else {
layout::Node::new(Size::new(title_width, title_height))
layout::Node::new(Size::new(max_size.width, title_height))
};
node.move_to(Point::new(padding, padding));