Improve padding
This commit is contained in:
parent
c0891800dc
commit
0e8696df84
1 changed files with 1 additions and 1 deletions
|
@ -999,7 +999,7 @@ impl<S: ScrollbarVisibilitySetting, T: ScrollableHandle> Element for ScrollbarEl
|
||||||
let width = self.state.read(cx).width.to_pixels();
|
let width = self.state.read(cx).width.to_pixels();
|
||||||
|
|
||||||
let additional_padding = if thumb_ranges.len() == 2 {
|
let additional_padding = if thumb_ranges.len() == 2 {
|
||||||
width + SCROLLBAR_PADDING
|
width
|
||||||
} else {
|
} else {
|
||||||
Pixels::ZERO
|
Pixels::ZERO
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue