We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd83908 commit 72cc71fCopy full SHA for 72cc71f
1 file changed
frontends/rioterm/src/application.rs
@@ -448,6 +448,16 @@ impl ApplicationHandler<EventPayload> for Application<'_> {
448
} else {
449
let size = route.window.screen.context_manager.len();
450
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();
461
}
462
463
0 commit comments