From 10f04fd19de3bc2951d42411c237c8b963e6c816 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 19 Oct 2024 12:26:02 +0300 Subject: layout: Update tile config in Column::add_tile_at() --- src/layout/workspace.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index f6c3f7df..2fd70978 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -3085,7 +3085,9 @@ impl Column { self.active_tile_idx = idx; } - fn add_tile_at(&mut self, idx: usize, tile: Tile, animate: bool) { + fn add_tile_at(&mut self, idx: usize, mut tile: Tile, animate: bool) { + tile.update_config(self.scale, self.options.clone()); + // Inserting a tile pushes down all tiles below it, but also in always-centering mode it // will affect the X position of all tiles in the column. let mut prev_offsets = Vec::with_capacity(self.tiles.len() + 1); -- cgit