Answer the question
In order to leave comments, you need to log in
How to make JavaFX Separator be 1px wide?
The subject was discussed here .
Discussion abandoned, issue not resolved.
If we prescribe
.separator *.line {
-fx-border-style: solid;
-fx-border-width: 1px;
-fx-border-color: red;
}
Answer the question
In order to leave comments, you need to log in
It seems to me that there is no error here - the element has a zero height. A border is added on each side. That is, the upper border is plused with the lower one - here you have two pixels.
Not 100% sure, but maybe this will help you: -fx-border-style: hidden hidden solid hidden;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question