1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -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

@@ -370,7 +370,7 @@ impl Rect {
}
#[must_use]
pub fn intersect(self, other: Rect) -> Self {
pub fn intersect(self, other: &Rect) -> Self {
Self {
min: self.min.max(other.min),
max: self.max.min(other.max),