Made Region::clip_rect private

This commit is contained in:
Emil Ernerfeldt
2020-05-05 02:42:01 +02:00
parent 24ce7b4145
commit be93d5b0e0
3 changed files with 5 additions and 3 deletions
+3 -1
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);