Skip to content

Commit 1dc4e48

Browse files
authored
Update scroll_area.rs
1 parent 46d0918 commit 1dc4e48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/egui/src/containers/scroll_area.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,12 +1010,12 @@ impl Prepared {
10101010
let outer_scroll_rect = if d == 0 {
10111011
Rect::from_min_max(
10121012
pos2(inner_rect.left(), cross.min - inner_margin),
1013-
pos2(inner_rect.right(), cross.max),
1013+
pos2(inner_rect.right(), cross.max + outer_margin),
10141014
)
10151015
} else {
10161016
Rect::from_min_max(
10171017
pos2(cross.min - inner_margin, inner_rect.top()),
1018-
pos2(cross.max, inner_rect.bottom()),
1018+
pos2(cross.max + outer_margin, inner_rect.bottom()),
10191019
)
10201020
};
10211021

0 commit comments

Comments
 (0)