Containers that can align to baseline may need to know the baselines of
their child components when calculating preferred size (where it's going to
place the children may affect the preferred size of the container).  Since
the container has may have a width constraint in mind when it asks its
children for their preferred size, it stands to reason that the same width
constraint will apply when it asks the children for their baselines.  Thus,
I think the baseline calculation has to take a width constraint.

>From a high level, it seems like this should be OK, since baseline alignment
> isn't so much about setting size as it is aligning things after their sizes
> have been set.
>

I think what I'm saying above is that this assumption may not be correct.
Is it possible that a child's baseline will need to be calculated during the
preferred size calculation of its parent (and would affect the preferred
size of the parent)?  I want to say we have to assume yes, but I'm not 100%
sure.

-T

Reply via email to