Support empty column in tile_offsets

Will be needed for the new inserting tile code.
This commit is contained in:
Ivan Molodetskikh
2024-10-11 11:00:50 +03:00
parent 859c0be0e5
commit c9c985c927
+5 -1
View File
@@ -3724,7 +3724,11 @@ impl<W: LayoutElement> Column<W> {
// the workspace or some other reason.
let center = self.options.center_focused_column == CenterFocusedColumn::Always;
let gaps = self.options.gaps;
let col_width = self.width();
let col_width = if self.tiles.is_empty() {
0.
} else {
self.width()
};
let mut y = 0.;
if !self.is_fullscreen {