-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: fx2.0
-
Component/s: javafx
-
Environment:
JavaFX 2.0 Beta (Build 30)
Windows 7 64 bit,
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)
HBox is created as following:
private Parent createTopBar() {
final HBox box = new HBox(2.0);
box.setAlignment(Pos.BASELINE_LEFT);
final TextBox nameInput = new TextBox(20);
final PasswordBox passwordInput = new PasswordBox();
final Button loginCmd = new Button("Log In...");
final ProgressBar progressView = new ProgressBar(0.0);
final Label label1 = new Label("Name:");
final Label label2 = new Label("Password:");
box.getChildren().addAll(
label1,
nameInput,
label2,
passwordInput,
loginCmd,
progressView
);
return box;
}
The resulting layout is broken as shown at the attached screenshot.
private Parent createTopBar() {
final HBox box = new HBox(2.0);
box.setAlignment(Pos.BASELINE_LEFT);
final TextBox nameInput = new TextBox(20);
final PasswordBox passwordInput = new PasswordBox();
final Button loginCmd = new Button("Log In...");
final ProgressBar progressView = new ProgressBar(0.0);
final Label label1 = new Label("Name:");
final Label label2 = new Label("Password:");
box.getChildren().addAll(
label1,
nameInput,
label2,
passwordInput,
loginCmd,
progressView
);
return box;
}
The resulting layout is broken as shown at the attached screenshot.
- relates to
-
JDK-8128852 Labeled controls always return computed minHeight
-
- Closed
-