If I add -fx-border-radius
and -fx-border-width
CSS to a simple GridPane, in its corner the background will not be "cut down".
The CSS:
.payload {
-fx-hgap: 20px;
-fx-padding: 40px;
-fx-background-color: #2969c0;
-fx-border-radius: 50px;
-fx-border-width: 5px;
-fx-border-color: black;
-fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.8), 10, 0, 0, 0);
}
The picture about the result:
How do I fix this ?