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

Setting CSS wrap-text to true on a button with a single letter causes the letter to disappear

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u15
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:

      Description

      No Label on button:

          public void start(Stage stage) throws Exception {
              StackPane rootPane = new StackPane();
              Button letterButton = new Button("B");
              letterButton.setStyle("-fx-wrap-text: true");
              rootPane.getChildren().add(letterButton);
              Scene scene = new Scene(rootPane, 1200, 800);
              stage.setScene(scene);
              stage.show();
          }

      This is only in the latest build, and used to work in the previous build so this is a backwards compatibility issue (and although innocent looking, completely kills my app that has a software keyboard in it).

      This works on b13 and doesn't on the latest, I haven't tested any other versions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dgrieve David Grieve
              Reporter:
              dzwolenskjfx Daniel Zwolenski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: