On Mon, 31 Aug 2026 14:53:49 GMT, John Hendrikx <[email protected]> wrote:
> For the child's internal structure, it can place things snapped again. This is the entire question here. We're not talking about how a region draws its background and border, we're only talking about how it lays out its children (i.e. its internal structure). If you say that a region would snap its children, then that's option 1: the region first snaps its allocated size, then it lays out its children within this allocation. Option 2 would be that a region doesn't snap all of its children, but makes a deliberate decision which child is left unsnapped so that it exactly fills its allocation. Each layout container must decide this based on its own logic. For example, a BorderPane would probably leave the top, bottom, and right children unsnapped, but snap the left and center child. An AnchorPane would probably snap children in the general case, but it wouldn't snap a right-anchored child that is anchored with distance 0 to the right side of the allocation. So far, none of the layout containers answer those questions deliberately. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2262#discussion_r3897068576
