You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless something in the tree applies a width modifier or adjusts constraints in a custom Layout, the maxWidth will default to Infinity.
I think it would be a quality-of-life improvement to default this to the terminal width if available. Rendering beyond the terminal width will usually result in an unintentional wrap which breaks mosaic's render/reset loop.
Note: Text will currently throw an exception if measured at a width smaller than its intrinsic width, so I don't know if this change can be made without also doing something about text overflow.
The text was updated successfully, but these errors were encountered:
Unless something in the tree applies a width modifier or adjusts constraints in a custom
Layout
, themaxWidth
will default toInfinity
.I think it would be a quality-of-life improvement to default this to the terminal width if available. Rendering beyond the terminal width will usually result in an unintentional wrap which breaks mosaic's render/reset loop.
Note:
Text
will currently throw an exception if measured at a width smaller than its intrinsic width, so I don't know if this change can be made without also doing something about text overflow.The text was updated successfully, but these errors were encountered: