Skip to content

Commit 1f1286d

Browse files
committed
Round again after subtracting current_bar_use
1 parent 4674903 commit 1f1286d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/egui/src/containers/scroll_area.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,9 @@ impl ScrollArea {
754754
inner_size[d] = inner_size[d].max(min_scrolled_size[d]);
755755
}
756756
}
757-
inner_size
757+
758+
// Round to pixels again because `current_bar_use` might have offset it
759+
inner_size.round_to_pixels(ui.pixels_per_point()).round_ui()
758760
};
759761

760762
let inner_rect = Rect::from_min_size(available_outer.min, inner_size);

0 commit comments

Comments
 (0)