fix(examples-styling): fixed checkbox and toggler getting hidden behind scrollbar

Column inside scrollable is having Length::Fill so it is taking entire width thus hiding check box and toggler.
Added fixed width to scrollable so Lenth::Fill will be relative to fixed width
This commit is contained in:
Akshay Raina 2023-09-02 02:03:39 +05:30 committed by Héctor Ramón Jiménez
parent 3b0d1b1ed4
commit 3a44ad3c73
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -108,6 +108,7 @@ impl Sandbox for Styling {
column!["Scroll me!", vertical_space(800), "You did it!"]
.width(Length::Fill),
)
.width(300)
.height(100);
let checkbox = checkbox(