Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Textarea Vertical Scroll bar always active?

I tried many times to make the vertical Scroll Bar of Textrea to be always active instead of being visible only when focus on the Textarea but I couldn't do that ! ..

any help please

like image 915
Jason4Ever Avatar asked Nov 01 '22 13:11

Jason4Ever


1 Answers

I know that a lot of time has passed since this question was asked but I still want to give the answer for those who need it. To make the ScrollBar visible you just need to access to it from the TextArea class while passing through the Scrollpane :

.text-area > .scroll-pane{

-fx-vbar-policy:always; /* Control the vertical ScrollBar (always,needed,never) */
-fx-hbar-policy:always; /* Control the horizontal ScrollBar (always,needed,never) */

}

Good luck !

like image 146
Bo Halim Avatar answered Nov 10 '22 00:11

Bo Halim