Hi all,
I am using scrollBox but I want to manage scroll position programmatically.
I need to understand how to read max horizzontal scroll position (such as scrollLeftMax) and if it’s possible to make not visible the scrollbar.
Thank you for aid
Hello,
unfortunately, ScrollBox API does not provide ability to get scroll max positions.
To hide scrollbar you can use css
attribute:
<scrollBox id="scrollBox"
css="overflow: hidden;">
</scrollBox>
or extend theme and write CSS style.
Hi Roman,
thanks for response,
Is there another way to understand that the scroll bar is at the end of layout?
Have you a workaround?
From the server-side you cannot achieve this. It is not simple way, but you can try to extend ScrollBoxLayout
and see what information you can get form client’s widget. See the following links:
- Creating a GWT component
- Here you can find sample project with extended component: Use Plotly in PivotTable - #7 от пользователя Pinyazhin - CUBA.Platform