summaryrefslogtreecommitdiffstats
path: root/examples/styling
diff options
context:
space:
mode:
authorLibravatar Akshay Raina <104209297+akshayr-mecha@users.noreply.github.com>2023-09-02 02:03:39 +0530
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-09-03 08:33:02 +0200
commit3a44ad3c737cf6cff6f04e03a7778d75fcc0c719 (patch)
tree7c1fc7054460ff5220c8b81a590d67e10566e854 /examples/styling
parent3b0d1b1ed4226d53f63e39550a446c784d5f4199 (diff)
downloadiced-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.rs1
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(