Skip to content

Commit

Permalink
Fix broken music player layout on sw renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw committed Mar 9, 2025
1 parent fafa74f commit 7f9f10b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions demos/home-automation/ui/components/musicPlayer.slint
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export component MusicPlayer inherits Rectangle {
VerticalLayout {
alignment: stretch;
spacing: 2px;
padding-top: 10px;
padding-top: 0px;
padding-bottom: 20px;

VerticalLayout {
Expand Down Expand Up @@ -156,9 +156,13 @@ export component MusicPlayer inherits Rectangle {
}
}

controls := Rectangle {
width: 95%;

}

controls := Rectangle {
y: root.height - self.height -0px;
width: 95%;
height: 60px;
HorizontalLayout {
Rectangle {
Rectangle {
Expand Down Expand Up @@ -211,6 +215,5 @@ export component MusicPlayer inherits Rectangle {
}
}
}
}
}
}

0 comments on commit 7f9f10b

Please sign in to comment.