summaryrefslogtreecommitdiffstats
path: root/widget/src/scrollable.rs
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2023-05-10 17:09:29 -0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-05-23 04:28:44 +0200
commit12a57fae5c4a8cf24976c551a64753b5da32ee30 (patch)
tree376fcb4a358b14601c9e6bffa136020671a0efeb /widget/src/scrollable.rs
parente31582e59efed3ffc775f2ce12e14dd6c4ec343f (diff)
downloadiced-12a57fae5c4a8cf24976c551a64753b5da32ee30.tar.gz
iced-12a57fae5c4a8cf24976c551a64753b5da32ee30.tar.bz2
iced-12a57fae5c4a8cf24976c551a64753b5da32ee30.zip
Remove min width 1 from scrollbar & scroller
Diffstat (limited to 'widget/src/scrollable.rs')
-rw-r--r--widget/src/scrollable.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs
index fd51a6a8..c3478493 100644
--- a/widget/src/scrollable.rs
+++ b/widget/src/scrollable.rs
@@ -128,9 +128,8 @@ impl Properties {
}
/// Sets the scrollbar width of the [`Scrollable`] .
- /// Silently enforces a minimum width of 1.
pub fn width(mut self, width: impl Into<Pixels>) -> Self {
- self.width = width.into().0.max(1.0);
+ self.width = width.into().0.max(0.0);
self
}
@@ -141,9 +140,8 @@ impl Properties {
}
/// Sets the scroller width of the [`Scrollable`] .
- /// Silently enforces a minimum width of 1.
pub fn scroller_width(mut self, scroller_width: impl Into<Pixels>) -> Self {
- self.scroller_width = scroller_width.into().0.max(1.0);
+ self.scroller_width = scroller_width.into().0.max(0.0);
self
}
}