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...'?

Jordan's avatar

Correct me if I'm wrong, but the order in which we calculate parent-dependent sizes vs child-dependent sizes doesn't matter right? In other words, we could calculate all widgets with UI_SizeKind_ChildrenSum first, then calculate all widgets with UI_SizeKind_ParentPercent after. This means we could do both child- and parent-dependent in a single tree traversal: child-dependent on the way down then parent-dependent on the way back up. Since presumabely you'd have the node stack at the bottom of the downwards descent?

12 more comments...

No posts

Ready for more?