Open mindset-team opened 3 years ago
Hi @mindset-team,
The Window
object has an ignore_content_width
parameter. This seems to do the job in your case, if you pass it to both windows.
What is harder, is to have evenly spaced columns, where the content is not a Window
, but any other Container
object. I think at this point, there is no clean way to do that.
I'd probably accept a patch that takes a ignore_content_{width,height}
argument in {H,V}Split
, and fixes _divide_{widths,heights}
to make this work.
is it possible to create a [vertically] evenly-spaced layout, which stays evenly spaced, even when dynamically changing content of window children?
Below is some sample code. Pressing
c
injects some content into the two windows' FormattedTextControl's, relative width changes (vertical divider moved with each press..). Columns are not evenly spaced even on initialization on narrow terminal whenuser_msg
instructions are initially displayed (namely, application doesn't even start evenly spaced on a narrow terminal).