Scrollbars are a feature of desktop UIs. In device builds you won't see 
scrollbars. I suggest you remove that code and don't do that.

On Thursday, December 3, 2020 at 11:02:52 AM UTC+2 P5music wrote:

> My app has a BrowserComponent in the layout, where a long page can be 
> displayed.
> It is intended to scroll, but without scrollbars visible.
> I see that the vertical scrollbar is visible instead. 
> A further fact is that when I grab the scrollbars with the mouse pointer 
> the side menu wants to appear and it is coming visible indeed (if I drag 
> laterally it appears completely).
>
> I put all this kind of code:
>
> webView.setScrollVisible(false);
> mainVertical.add(BorderLayout.NORTH,anotherArea);
>         area.setScrollableX(false);
> area.setScrollableY(false);
> area.add(BorderLayout.CENTER,webView);
>         mainVertical.setScrollableX(false);
> mainVertical.setScrollableY(false);
>         mainVertical.add(BorderLayout.CENTER,area);
>       /*  UIManager.getInstance().setLookAndFeel(new 
> DefaultLookAndFeel(UIManager.getInstance()) {
>             @Override
>             public void bind(Component cmp) {
>                 if (cmp instanceof Container) {
>                     cmp.setScrollVisible(false);
>                 }
>             }
>         });*/
> this.setLayout(new BorderLayout());
>         this.add(BorderLayout.CENTER,mainVertical);
>
> but even uncommenting those commented lines there is a visible scrollbar.
> I cannot get rid of it.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/10d4ab35-9815-4666-9967-9b979add8d45n%40googlegroups.com.

Reply via email to