mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Quickstart Rust Example Fix: Add x value for left Rectangle. (#5091)
This commit is contained in:
parent
f86f4993fa
commit
4bf8e788c4
7 changed files with 7 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; }
|
||||
|
|
|
@ -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