RFR: 8291625: DialogPane without header nor headerText nor graphic node adds padding to the left of the content pane

Jose Pereda jpereda at openjdk.org
Mon Aug 22 18:47:53 UTC 2022


On Tue, 16 Aug 2022 11:57:45 GMT, Ajit Ghaisas <aghaisas at openjdk.org> wrote:

>> This PR fixes an issue when there is a DialogPane that has no header and no graphic is set, by adding the `graphic-container` styleclass only when there is a non-null graphic applied, preventing the padding that otherwise the graphic container will keep.
>> 
>> Two tests have been added, to verify that the padding is 0 when there is no graphic (this test fails without this PR) and to verify that the padding is correct when there is a graphic to the left of the content area.
>> 
>> As part of this PR or as possible follow-up, it could be also discussed that the right/bottom padding of the graphic container shouldn't be 0 when there is no header and the graphic is laid out to the left of the content area.
>
>> As part of this PR or as possible follow-up, it could be also discussed that the right/bottom padding of the graphic container shouldn't be 0 when there is no header and the graphic is laid out to the left of the content area.
> 
> We can discuss this in a separate JBS issue.

@aghaisas I've just filed https://bugs.openjdk.org/browse/JDK-8292740 to track the follow-up issue.

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

PR: https://git.openjdk.org/jfx/pull/859


More information about the openjfx-dev mailing list