1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Add scroll bars to windows.

Auto-hide scroll bars when not needed

Bug fixes:
 * collapsing headers animation
 * clip rect interactions
 * clip rects for scroll areas
This commit is contained in:
Emil Ernerfeldt
2020-04-26 22:30:24 +02:00
parent 2897b1cafc
commit fbedc2e9ab
12 changed files with 103 additions and 55 deletions

View File

@@ -172,7 +172,8 @@ impl Resize {
contents_region.clip_rect.max = contents_region
.clip_rect
.max
.max(contents_region.clip_rect.min + last_frame_size);
.max(contents_region.clip_rect.min + last_frame_size)
.min(region.clip_rect.max); // Respect parent region
add_contents(&mut contents_region);
contents_region.bounding_size()