mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 04:48:27 +00:00
usecases demo: Fix binding loop involving break-layout
Because of #3997
This commit is contained in:
parent
80de96488a
commit
5b45ded710
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 { }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue