[scroll] remember to expand clip region with the clip_rect_margin
@@ -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);
