1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00

Bug-fixes related to recent layout rewrite

This commit is contained in:
Emil Ernerfeldt
2021-03-21 14:31:55 +01:00
parent e232264b53
commit e20e3baa98
3 changed files with 64 additions and 28 deletions

View File

@@ -115,6 +115,12 @@ impl Row {
pub fn x_offset(&self, column: usize) -> f32 {
self.x_offsets[column.min(self.x_offsets.len() - 1)]
}
// Move down this much
pub fn translate_y(&mut self, dy: f32) {
self.y_min += dy;
self.y_max += dy;
}
}
impl Galley {