Text is not rotated correctly

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 7u6
    • Affects Version/s: 7u6
    • Component/s: javafx
    • Environment:

      fx2.2 b03
      Java Version
      1.7.0_03, Oracle Corporation, 1.7.0_03-b05
      windows 7

      import javafx.animation.RotateTransitionBuilder;
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.layout.StackPane;
      import javafx.stage.Stage;
      import javafx.util.Duration;


      public class Sample extends Application {

          @Override
          public void start(Stage stage) throws Exception {
              final Button button = new Button("This is button");
              stage.setScene(new Scene(new StackPane() {

                  {
                      getChildren().add(button);
                  }
              }));
              stage.setWidth(300);
              stage.setHeight(300);
              stage.show();
              RotateTransitionBuilder.create().node(button).duration(Duration.seconds(5)).toAngle(360).cycleCount(50).build().play();
          }

          public static void main(String[] args) {
              launch();
          }
      }

            Assignee:
            Philip Race
            Reporter:
            Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: