mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 13:24:48 +00:00
memory tutorial: Fix tile misrendering
Due to auto-centering, the left curtain would be rendered at the wrong place. Explicitly place it at 0px;
This commit is contained in:
parent
8b1683bf0a
commit
86db590a37
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ component MemoryTile inherits Rectangle {
|
|||
// Left curtain
|
||||
Rectangle {
|
||||
background: #193076;
|
||||
x: 0px;
|
||||
width: open_curtain ? 0px : (parent.width / 2);
|
||||
height: parent.height;
|
||||
animate width { duration: 250ms; easing: ease-in; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue