Remove min width 1 from scrollbar & scroller
This commit is contained in:
parent
e31582e59e
commit
12a57fae5c
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue