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 20, 2024
1 parent 46d0918 commit 1dc4e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui/src/containers/scroll_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1010,12 +1010,12 @@ impl Prepared {
let outer_scroll_rect = if d == 0 {
Rect::from_min_max(
pos2(inner_rect.left(), cross.min - inner_margin),
pos2(inner_rect.right(), cross.max),
pos2(inner_rect.right(), cross.max + outer_margin),
)
} else {
Rect::from_min_max(
pos2(cross.min - inner_margin, inner_rect.top()),
pos2(cross.max, inner_rect.bottom()),
pos2(cross.max + outer_margin, inner_rect.bottom()),
)
};

Expand Down

0 comments on commit 1dc4e48

Please sign in to comment.