diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-17 22:36:09 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-17 22:36:30 +0300 |
| commit | 44c9797844ca7ce8a708d5034f1259ce3fc6bd2a (patch) | |
| tree | 499c5596063b74ab4ea0cb93ae856c0b3b3b8c3d /src/layout | |
| parent | 652d2923bb963b16b481b91ce03b2fedd456dc17 (diff) | |
| download | niri-44c9797844ca7ce8a708d5034f1259ce3fc6bd2a.tar.gz niri-44c9797844ca7ce8a708d5034f1259ce3fc6bd2a.tar.bz2 niri-44c9797844ca7ce8a708d5034f1259ce3fc6bd2a.zip | |
Take tab indicators into account in expand-column-to-available-width
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/scrolling.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index 35a7c13e..f1819a08 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -2587,13 +2587,14 @@ impl<W: LayoutElement> ScrollingSpace<W> { 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. { // Nowhere to expand. return; } - let col = &mut self.columns[self.active_column_idx]; cancel_resize_for_column(&mut self.interactive_resize, col); if !counted_non_active_column { |
