From c9873a0885bf50544bc2b72154dc257c66cb7959 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 12 Aug 2025 22:34:13 +0300 Subject: layout: Remove by-ref animation_snapshot() getter It was used in only one place, and that place was due for an update to use the cached data. --- src/layout/scrolling.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/layout/scrolling.rs') diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index 37feb227..94f2aa97 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -4041,15 +4041,13 @@ impl Column { .find(|(_, tile)| tile.window().id() == window) .unwrap(); - let height = f64::from(tile.window().size().h); - let offset = tile - .window() - .animation_snapshot() - .map_or(0., |from| from.size.h - height); + let prev_height = self.data[tile_idx].size.h; tile.update_window(); self.data[tile_idx].update(tile); + let offset = prev_height - self.data[tile_idx].size.h; + let is_tabbed = self.display_mode == ColumnDisplay::Tabbed; // Move windows below in tandem with resizing. -- cgit