Scrollbar scrolling bar is not displayed in ComboBox

0

I have a concern with a combobox that I created in JavaFx, this is to be managed from a touch screen for a touch application, in this combobox the scroll bar is not always visible and it is impossible to download or move the information in the and tried from the css and I have not succeeded. Is it possible to do it from the code or what do you recommend I do with it? This is the code I used to try to make it visible all the time the ComboBox is deployed.

   .combo-box-popup .list-view .scroll-bar:vertical .thumb
{
    -fx-max-width: 12px;
    -fx-background-color: black;
    -fx-background-insets: 2, 0, 0;
    -fx-background-size: 20px,40px;
    -fx-background-position: center 5% , center 95%;
}

.combo-box-popup .list-view .scroll-bar .thumb:hover,
.combo-box-popup .list-view .scroll-bar .thumb:pressed{
    -fx-background-color: derive(black,90%);
    -fx-min-width: 12px;
}

.combo-box-popup .list-view .scroll-bar:horizontal .thumb,
.combo-box-popup .list-view .scroll-bar:vertical .thumb {
    -fx-background-color:derive(black,90%);
    -fx-min-width: 12px;
    -fx-background-insets: 0, 0, 0;
    -fx-background-radius: 0em;
    visibility: visible;
}
    
asked by david sore 06.04.2018 в 01:49
source

0 answers