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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 8
    • Component/s: 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());
          }
      });



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

              Created:
              Updated:
              Imported: