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

Text orientation not always inherit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 8
    • javafx
    • None

    Description

      If some change in the node causes a impl_transformsChanged() before the node has a parent, is possible the orientation in the parent will not be propagated to the text node.

      Example:
         public void start(Stage stage) {
             Pane pane = new Pane();
             pane.setNodeOrientation(NodeOrientation.RIGHT_TO_LEFT);
             Text text1 = new Text("text1.");
             text1.setLayoutX(20); //this sets transform changed
             text1.setLayoutY(20);
             pane.getChildren().addAll(text1);//transform changed wont be called again
             //poking the node fixes it, try uncommenting:
      // text1.setLayoutY(text1.getLayoutY()+1);
             Scene s = new Scene(pane, 200, 200);
             stage.setScene(s);
             stage.show();
         }

      Attachments

        Issue Links

          Activity

            People

              fheidric Felipe Heidrich (Inactive)
              fheidric Felipe Heidrich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: