layout/scrolling: Update view offset on config update

Fix always-centering not applied right away. No other changes intended.
This commit is contained in:
Ivan Molodetskikh
2025-05-01 21:34:46 +03:00
parent eb590c5346
commit 6c9705dd4b
+5
View File
@@ -293,6 +293,11 @@ impl<W: LayoutElement> ScrollingSpace<W> {
self.working_area = working_area; self.working_area = working_area;
self.scale = scale; self.scale = scale;
self.options = options; self.options = options;
// Apply always-center and such right away.
if !self.columns.is_empty() && !self.view_offset.is_gesture() {
self.animate_view_offset_to_column(None, self.active_column_idx, None);
}
} }
pub fn update_shaders(&mut self) { pub fn update_shaders(&mut self) {