B4J Question click on scrollpane

tufanv

Expert
Licensed User
Longtime User
Hello,

I am using a scrollpane to add panes in it. Lets say I have added 3 panes to scroll and there is a gap below. If I click on one of the panes , the empty part of scrollpane gets a selected blue color : please check the img:



is there any way to avoid it ?
 

stevel05

Expert
Licensed User
Longtime User
I think you'll need to do that in an external css file. I believe it's the :focused pseudo‑class you will need to change.

Something like:
B4X:
.scroll-pane:focused{
-fx-background-color: Transparent;
}
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
I think you'll need to do that in an external css file. I believe it's the :focused pseudo‑class you will need to change.

Something like:
B4X:
.scroll-pane:focused{
-fx-background-color: Transparent;
}
This solved it Thanks !
 
Upvote 0
Top