1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Made Region::clip_rect private

This commit is contained in:
Emil Ernerfeldt
2020-05-05 02:33:27 +02:00
parent 24ce7b4145
commit be93d5b0e0
3 changed files with 5 additions and 3 deletions

View File

@@ -113,7 +113,9 @@ impl CollapsingHeader {
)
};
region.clip_rect.max.y = region.clip_rect.max.y.min(region.cursor().y + max_height);
let mut clip_rect = region.clip_rect();
clip_rect.max.y = clip_rect.max.y.min(region.cursor().y + max_height);
region.set_clip_rect(clip_rect);
add_contents(region);