On Tue, 5 Nov 2024 16:32:47 GMT, Andy Goryachev <ango...@openjdk.org> wrote:

>> The components can't be too large to fit:
>> `{@code HeaderBar} honors the minimum, preferred, and maximum sizes of its 
>> children.`
>
> I want to know what happens when the layout is over-constrained.  For 
> example, consider the layout to have the leading, the center, and the 
> trailing nodes set, and the leading one has minWidth set to 10_000.  What 
> happens?
> 
> Will the center and the trailing nodes be shown or clipped?  will the layout 
> attempt to squeeze all three to fit the available space?
> 
> Can I get this answer from the javadoc?

I've added another sentence to the javadocs of `HeaderBar`:

 * All children will be resized to their preferred widths and extend the height 
of the {@code HeaderBar}.
 * {@code HeaderBar} honors the minimum, preferred, and maximum sizes of its 
children. As a consequence,
 * its computed minimum width is sufficient to accommodate all of its children.


Does that help?

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1605#discussion_r1832000693

Reply via email to