mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Take tab indicators into account in expand-column-to-available-width
This commit is contained in:
@@ -2587,13 +2587,14 @@ impl<W: LayoutElement> ScrollingSpace<W> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let available_width = working_w - gap - width_taken;
|
let col = &mut self.columns[self.active_column_idx];
|
||||||
|
|
||||||
|
let available_width = working_w - gap - width_taken - col.extra_size().w;
|
||||||
if available_width <= 0. {
|
if available_width <= 0. {
|
||||||
// Nowhere to expand.
|
// Nowhere to expand.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let col = &mut self.columns[self.active_column_idx];
|
|
||||||
cancel_resize_for_column(&mut self.interactive_resize, col);
|
cancel_resize_for_column(&mut self.interactive_resize, col);
|
||||||
|
|
||||||
if !counted_non_active_column {
|
if !counted_non_active_column {
|
||||||
|
|||||||
Reference in New Issue
Block a user