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

[ProgressIndicator] behaves itself wrong, when aligned

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 7u6, 8, 9, 10
    • javafx
    • 2.2.0b18

      You can run an attached code to reproduce:

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.control.ProgressIndicator;
      import javafx.scene.control.ToggleButton;
      import javafx.scene.layout.HBox;
      import javafx.stage.Stage;

      public class JavaApplication50 extends Application {

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

          @Override
          public void start(Stage stage) throws Exception {
              HBox hb = new HBox();
              hb.setPrefSize(300, 300);

              hb.getChildren().addAll(new Button("Button"), new ProgressIndicator(0.5), new ToggleButton("tbutton"));

              hb.setStyle("-fx-border-color: RED;");

              Scene scene = new Scene(hb, 400, 400);
              stage.setScene(scene);
              stage.show();
          }
      }

      Look at the attached image.

      Controls are in HBox, and progress indicator doesn't fit into common "line" in different alignments.

        1. ControlsLayoutPart4Test-HBoxSetN3.png
          ControlsLayoutPart4Test-HBoxSetN3.png
          33 kB
        2. fixed_withHbox.jpg
          fixed_withHbox.jpg
          19 kB
        3. fixed_withVbox.jpg
          fixed_withVbox.jpg
          19 kB
        4. with_Hbox.jpg
          with_Hbox.jpg
          21 kB
        5. with_Vbox.jpg
          with_Vbox.jpg
          21 kB

            aghaisas Ajit Ghaisas
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: