Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8291625

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • jfx20
    • jfx18
    • javafx
    • None
    • b03

    Backports

      Description

        Creating an Alert with alert type NONE, without header node, without header text and without graphic node, should not have/show a header but only show the content node and button bar.

        However, in the case DialogPane::isHeader is false, that happens when there is no header node (DialogPane::getHeader is null), there is no header text (DialogPane::getHeaderText is null or empty) and DialogPane::getGraphic is null, the empty container for the graphic is laid out to the left of the content pane (as expected when there is a graphic node and isHeader is false), with some padding.

        The following pic illustrate the issue, as a result of running the attached test:

        - alertTypeNone.png: the empty stack pane with the graphic-container style class has some padding and pushes the content pane to the right (padding is 10.8 pixels, snapped to 11, see alertTypeNonePadding.png).

        Removing such padding will push the content pane to the left, as it should be expected.

        The issue can be reproduced with any JavaFX version.

        Attachments

          Issue Links

            Activity

              People

                jpereda Jose Pereda
                jpereda Jose Pereda
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: