forge
Explore
Log in

Don't you dare go Hollow

Take tab indicators into account in expand-column-to-available-width

Browse files at this commit

44c9797844ca7ce8a708d5034f1259ce3fc6bd2aIvan MolodetskikhParent: 652d292
src/layout/scrolling.rsmodified+3 -2
@@ -2587,13 +2587,14 @@ impl<W: LayoutElement> ScrollingSpace<W> {
2587 return;2587 return;
2588 }2588 }
2589 2589
2590- let available_width = working_w - gap - width_taken;2590+ let col = &mut self.columns[self.active_column_idx];
2591+
2592+ let available_width = working_w - gap - width_taken - col.extra_size().w;
2591 if available_width <= 0. {2593 if available_width <= 0. {
2592 // Nowhere to expand.2594 // Nowhere to expand.
2593 return;2595 return;
2594 }2596 }
2595 2597
2596- let col = &mut self.columns[self.active_column_idx];
2597 cancel_resize_for_column(&mut self.interactive_resize, col);2598 cancel_resize_for_column(&mut self.interactive_resize, col);
2598 2599
2599 if !counted_non_active_column {2600 if !counted_non_active_column {