Investigate Defering Pane initialization until after layout is completed #5616

Open
opened 2026-01-31 00:17:33 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Dec 17, 2019).

Found during the course of investigating #607. Right now we attempt to create the UI of the Pane immediately on construction. While investigating commandline args, I'd try to create a bunch of Panes. This didn't work, because the Pane would have 0 height/width, and would fail to create the UI, or attache the child, until a resize came through.

This is overall bad. We should probably wait until we complete the first layout to calculate how much size we have. Part of the reason this was so bad is that we're manually setting the width/height of our rows/columns to the number of pixels equal to some % of what's available. When that's being calculated, there's only 0px available.

Originally created by @zadjii-msft on GitHub (Dec 17, 2019). Found during the course of investigating #607. Right now we attempt to create the UI of the Pane _immediately_ on construction. While investigating commandline args, I'd try to create a bunch of `Pane`s. This didn't work, because the Pane would have 0 height/width, and would fail to create the UI, or attache the child, until a resize came through. This is overall bad. We should probably wait until we complete the first layout to calculate how much size we have. Part of the reason this was so bad is that we're manually setting the width/height of our rows/columns to the number of pixels equal to some % of what's available. When that's being calculated, there's only 0px available.
claunia added the Issue-TaskNeeds-Tag-FixProduct-TerminalArea-UserInterface labels 2026-01-31 00:17:34 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5616