Fix expand-column-to-available-width for always-center

This commit is contained in:
Ivan Molodetskikh
2025-02-17 21:47:28 +03:00
parent 92cc2b89f7
commit 85349ce475
+1 -1
View File
@@ -2541,7 +2541,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
// on screen while taking into account that the active column will remain centered // on screen while taking into account that the active column will remain centered
// after resizing. But I'm not sure it's that useful? So let's do the simple thing. // after resizing. But I'm not sure it's that useful? So let's do the simple thing.
let col = &mut self.columns[self.active_column_idx]; let col = &mut self.columns[self.active_column_idx];
col.set_column_width(SizeChange::SetProportion(1.), None, true); col.toggle_full_width();
cancel_resize_for_column(&mut self.interactive_resize, col); cancel_resize_for_column(&mut self.interactive_resize, col);
return; return;
} }