From 44c9797844ca7ce8a708d5034f1259ce3fc6bd2a Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 17 Feb 2025 22:36:09 +0300 Subject: Take tab indicators into account in expand-column-to-available-width --- src/layout/scrolling.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 ScrollingSpace { 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 { -- cgit