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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      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());
          }
      });



        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Imported: