Skip to content

Commit

Permalink
Update scroll_area.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jun 23, 2024
1 parent dd592a1 commit ce08385
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/egui/src/containers/scroll_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,10 +960,7 @@ impl Prepared {
let main_range = Rangef::new(inner_rect.min[d], inner_rect.max[d]);

// Margin on either side of the scroll bar:
let inner_margin = match scroll_style.floating {
true => 0.0,
false => show_factor * scroll_style.bar_inner_margin,
};
let inner_margin = show_factor * scroll_style.bar_inner_margin;
let outer_margin = show_factor * scroll_style.bar_outer_margin;

let mut max_cross = outer_rect.max[1 - d] - outer_margin;
Expand Down

0 comments on commit ce08385

Please sign in to comment.