How to remove the scrollbar automatically in the WebView of Javafx ?
When you click "Cadastre" will open a screen, this screen is in javascript and is unconfigured because of the scrollbar, so we wanted to remove it.
How to remove the scrollbar automatically in the WebView of Javafx ?
When you click "Cadastre" will open a screen, this screen is in javascript and is unconfigured because of the scrollbar, so we wanted to remove it.
Normally for a
ScrollPane
you would do something like this:However, the scrollbars inside WebView are not your JavaFX UI control, but a part of the displayed webpage. Thus, you control them with CSS:
You can save this as a .css and apply it as a user stylesheet, similarly user style sheets in normal browsers, using this code:
If the user stylesheet you created is a part of your project's resources then you should externalize it so: