diff options
Diffstat (limited to 'src/ui/grid/grid.rs')
-rw-r--r-- | src/ui/grid/grid.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/grid/grid.rs b/src/ui/grid/grid.rs index 06963d6..687a9d9 100644 --- a/src/ui/grid/grid.rs +++ b/src/ui/grid/grid.rs @@ -387,11 +387,11 @@ impl Grid { } } - /// Calcualtes the current size of the grid. + /// Calcualtes the size of a grid that can fit in the current drawingarea + /// with current cell metrics. pub fn calc_size(&self) -> (i64, i64) { let ctx = self.context.borrow(); - // TODO(ville): Dont relay on the drawingarea's size. let w = self.da.get_allocated_width(); let h = self.da.get_allocated_height(); let cols = (w / ctx.cell_metrics.width as i32) as i64; |