Quickstart Rust Example Fix: Add x value for left Rectangle. (#5091)

This commit is contained in:
Scott B 2024-04-18 10:41:11 -05:00 committed by GitHub
parent f86f4993fa
commit 4bf8e788c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 0 deletions

View file

@ -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; }

View file

@ -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; }