문제

I'm trying to completly remove ListView borders from my app (in css) but nothing works.

There is structure in FXML like: HBox > AnchorPane > ListView

I tried to apply:

-fx-border-width: 0px;

to .hbox, .anchorpane (classes applied to nodes), .list-view and .list-cell but it looks like there is something more inside listview that still has border. How to remove it completely?

edit: problem solved. It was caused by default -fx-padding: 1px;

listview borders

도움이 되었습니까?

해결책 2

The answer is to use:

-fx-padding: 1px;

다른 팁

Remove JavaFX default control border (e.g., for ListView and SplitPane):

.list-view, .split-pane { -fx-background-insets: 0; -fx-padding: 0; }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top