Skip to content

Are fixed-width widgets outside a horizontal box rendered? #435

Closed Answered by jtdaugherty
amano-kenji asked this question in Q&A
Discussion options

You must be logged in to vote

It is not rendered at all. As for whether it is evaluated, I don't know without looking closely at the code, but I don't think you need to worry about that and I wouldn't recommend writing code that depends on knowing whether it's evaluated. (If you're concerned about performance, this is another case where Haskell's lazy evaluation will help.)

Here's how it works: both the str widgets are Fixed in the horizontal dimension. The box renders the first one with 10 columns to consume. It uses them all and gets cropped. Then there are zero left, so the second one is not rendered.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amano-kenji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants