summaryrefslogtreecommitdiffstats
path: root/src/ui/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/state.rs')
-rw-r--r--src/ui/state.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/state.rs b/src/ui/state.rs
index ca9f316..34f6788 100644
--- a/src/ui/state.rs
+++ b/src/ui/state.rs
@@ -171,6 +171,12 @@ impl UIState {
grid_metrics.height.ceil() as i32,
));
}
+
+ // If the update is on the base grid, update the metrics to the
+ // popupmenu too.
+ if e.grid == 1 {
+ self.popupmenu.set_base_metrics(grid.get_grid_metrics());
+ }
} else {
let grid = Grid::new(
e.grid,