Discussion about this post

User's avatar
Matthew Pass's avatar

Just a quick question... In the paragraph following the 'Show Buttons' example, should the text read '...and we *didn't* need to mutate the widget hierarchy...'?

Valentin's avatar
7dEdited

There are so many things I don't really get here, and maybe it's because it's a very long article trying to mix some code with logic and then visual images while explaining in words at the same time. One particular thing that got me really curious is that "violation pass". Why would you shrink things in a "violation pass"? You could just probe the sizes, and if elements of the root don't fit, you start from the first pass with the "new corrected sizes". Am I missing something? Another thing, on this same violation pass, if there's some max size to be respected, how do you even get to the point that you would go too much in one direction with your widgets? It feels like you'd just know how many things you can fit, so I'm not sure how you'd even ever get to that case to begin with.

13 more comments...

No posts

Ready for more?