mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Fix expand-column-to-available-width for always-center
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user