Skip to content

Commit 96c1cef

Browse files
committed
fix(gui): layout should be updated after widget display role is changed
1 parent 89faa5d commit 96c1cef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/gui/widget_base.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,7 @@ void Widget_UpdateDisplay(LCUI_Widget w)
723723
if (w->computed_style.display == display) {
724724
return;
725725
}
726-
if (w->parent && display == SV_NONE &&
727-
w->computed_style.position != SV_ABSOLUTE) {
726+
if (w->parent && w->computed_style.position != SV_ABSOLUTE) {
728727
Widget_UpdateLayout(w->parent);
729728
}
730729
Widget_UpdateVisibility(w);

0 commit comments

Comments
 (0)