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

[MIRROR] setting orientation in scene does not propagate to trim

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8
    • javafx

      setting orientation in scene does not propagate

      not sure if this is bug or not, but setting node orientation in scene does not change what is inside of it.

      Basically:
      scene.addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent> () {
          @Override public void handle(KeyEvent event) {
              if (event.getCode() == KeyCode.LEFT) {
                  scene.setNodeOrientation(NodeOrientation.LEFT_TO_RIGHT);
              }
              if (event.getCode() == KeyCode.RIGHT) {
                  scene.setNodeOrientation(NodeOrientation.RIGHT_TO_LEFT);
              }
              System.err.println("orientation " + scene.getNodeOrientation());
          }
      });

      does not change the content of the scene

      I have to do this

      scene.addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent> () {
          @Override public void handle(KeyEvent event) {
              if (event.getCode() == KeyCode.LEFT) {
                  scene.getRoot().setNodeOrientation(NodeOrientation.LEFT_TO_RIGHT);
              }
              if (event.getCode() == KeyCode.RIGHT) {
                  scene.getRoot().setNodeOrientation(NodeOrientation.RIGHT_TO_LEFT);
              }
              System.err.println("orientation " + scene.getNodeOrientation());
          }
      });



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

              Created:
              Updated:
              Imported: