From ad158c9c8c0f3ebffd878910bdaae5429a4f53b2 Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Thu, 20 Jun 2024 17:09:13 +0900 Subject: [PATCH] Update scroll_area.rs --- crates/egui/src/containers/scroll_area.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/containers/scroll_area.rs b/crates/egui/src/containers/scroll_area.rs index 44606a3ee1b..d6227c0e605 100644 --- a/crates/egui/src/containers/scroll_area.rs +++ b/crates/egui/src/containers/scroll_area.rs @@ -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()), ) };