On Tue, 5 Nov 2024 16:25:08 GMT, Andy Goryachev <ango...@openjdk.org> wrote:
>> What do you mean with growing and shrinking? >> >> An application can add a single `GridPane` to `HeaderBar.center`, and set >> its prefWidth to `POSITIVE_INFINITY`. This will extend the `GridPane` across >> the entire width of the header bar (excluding the window button area). > > maybe what's needed is to borrow some text from the `BorderPane`, along the > lines of > >> "The top and bottom children will be resized to their preferred heights and >> extend the width of the border pane. The left and right children will be >> resized to their preferred widths and extend the length between the top and >> bottom nodes. And the center node will be resized to fill the available >> space in the middle. Any of the positions may be null. " > > the important parts are > - how children are resized > - any can be null > > (the layout in the HB is like the one in the `BorderPane`, right?) Yes, `HeaderBar` is quite like `BorderPane`. I've added the information about nulls to the documentation, does that help? ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1605#discussion_r1832002965