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(); m_window_relative = compute_window_relative();
if (m_layout) { if (!m_layout || !m_layout->run()) {
m_layout->run();
} else {
for (auto child : m_children) { for (auto child : m_children) {
child->dispatch_event(event); child->dispatch_event(event);
} }