diff options
author | 2023-09-02 02:03:39 +0530 | |
---|---|---|
committer | 2023-09-03 08:33:02 +0200 | |
commit | 3a44ad3c737cf6cff6f04e03a7778d75fcc0c719 (patch) | |
tree | 7c1fc7054460ff5220c8b81a590d67e10566e854 /examples/styling | |
parent | 3b0d1b1ed4226d53f63e39550a446c784d5f4199 (diff) | |
download | iced-3a44ad3c737cf6cff6f04e03a7778d75fcc0c719.tar.gz iced-3a44ad3c737cf6cff6f04e03a7778d75fcc0c719.tar.bz2 iced-3a44ad3c737cf6cff6f04e03a7778d75fcc0c719.zip |
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
Diffstat (limited to 'examples/styling')
-rw-r--r-- | examples/styling/src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs index f8a4c80a..b457df25 100644 --- a/examples/styling/src/main.rs +++ b/examples/styling/src/main.rs @@ -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( |