usecases demo: Fix binding loop involving break-layout

Because of #3997
This commit is contained in:
Olivier Goffart 2025-05-19 18:22:45 +02:00
parent 80de96488a
commit 5b45ded710
2 changed files with 3 additions and 2 deletions

View file

@ -22,8 +22,6 @@ export component App inherits Window {
background: UsecasesPalette.use-material ? Palette.alternate-background : Palette.background;
main-view := MainView {
width: 100%;
height: 100%;
break-layout: root.width < 480px;
}

View file

@ -14,6 +14,9 @@ export global MainViewAdapter {
export component MainView {
in property <bool> break-layout;
preferred-height: 100%;
preferred-width: 100%;
forward-focus: focus-scope;
focus-scope := FocusScope { }