mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
[scroll] remember to expand clip region with the clip_rect_margin
This commit is contained in:
@@ -96,7 +96,8 @@ impl ScrollArea {
|
||||
inner_rect.min - state.offset,
|
||||
vec2(inner_size.x, f32::INFINITY),
|
||||
));
|
||||
let mut content_clip_rect = ui.clip_rect().intersect(inner_rect);
|
||||
let mut content_clip_rect = inner_rect.expand(ui.style().clip_rect_margin);
|
||||
content_clip_rect = content_clip_rect.intersect(ui.clip_rect());
|
||||
content_clip_rect.max.x = ui.clip_rect().max.x - current_scroll_bar_width; // Nice handling of forced resizing beyond the possible
|
||||
content_ui.set_clip_rect(content_clip_rect);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user