-
Bug
-
Resolution: Fixed
-
P3
-
8
The FX CSS styles -fx-scale-shape and -fx-background-color don't apply for a control correctly.
Run this code to reproduce the issue:
@Override
public void start(Stage stage) throws Exception {
BorderPane root = new BorderPane();
VBox node = VBoxBuilder.create().build();
node.setMinSize(50, 50);
node.setStyle("-fx-border-color:blue;-fx-shape:\"M 50 50 L 150 50 L 100 150 Z\";-fx-scale-shape: false;-fx-background-color: red;");
Pane pane = new Pane();
pane.setStyle("-fx-border-color:green");
pane.setMaxSize(100, 100);
pane.getChildren().add(node);
root.setCenter(pane);
Scene scene = new Scene(root, 200, 200);
stage.setScene(scene);
stage.setTitle(VersionInfo.getRuntimeVersion());
stage.show();
}
Run this code to reproduce the issue:
@Override
public void start(Stage stage) throws Exception {
BorderPane root = new BorderPane();
VBox node = VBoxBuilder.create().build();
node.setMinSize(50, 50);
node.setStyle("-fx-border-color:blue;-fx-shape:\"M 50 50 L 150 50 L 100 150 Z\";-fx-scale-shape: false;-fx-background-color: red;");
Pane pane = new Pane();
pane.setStyle("-fx-border-color:green");
pane.setMaxSize(100, 100);
pane.getChildren().add(node);
root.setCenter(pane);
Scene scene = new Scene(root, 200, 200);
stage.setScene(scene);
stage.setTitle(VersionInfo.getRuntimeVersion());
stage.show();
}
- relates to
-
JDK-8115208 css style -fx-scale-shape not apply after render control
-
- Closed
-
-
JDK-8125725 Accordion: when pane content is open, shadow not visible
-
- Closed
-