Skip to content

Commit 72cc71f

Browse files
committed
fix island gap persisting after shell exit with hide-if-single
1 parent dd83908 commit 72cc71f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

frontends/rioterm/src/application.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,16 @@ impl ApplicationHandler<EventPayload> for Application<'_> {
448448
} else {
449449
let size = route.window.screen.context_manager.len();
450450
route.window.screen.resize_top_or_bottom_line(size);
451+
// Re-apply taffy layout so sugarloaf.set_position reflects the
452+
// updated scaled_margin (e.g. when hide_if_single transitions
453+
// from 2 tabs to 1 tab via shell exit rather than close-tab action).
454+
route
455+
.window
456+
.screen
457+
.context_manager
458+
.current_grid_mut()
459+
.update_dimensions(&mut route.window.screen.sugarloaf);
460+
route.window.screen.render();
451461
}
452462
}
453463
}

0 commit comments

Comments
 (0)