fix relayout subtree logic

This commit is contained in:
hippoz 2022-10-28 23:24:07 +03:00
parent abbedd9db1
commit 9b2655beb2
No known key found for this signature in database
GPG key ID: 7C52899193467641

View file

@ -202,9 +202,7 @@ void Widget::handle_relayout_subtree(RelayoutSubtreeEvent &event) {
m_window_relative = compute_window_relative();
if (m_layout) {
m_layout->run();
} else {
if (!m_layout || !m_layout->run()) {
for (auto child : m_children) {
child->dispatch_event(event);
}