Codename One - container.setScrollVisible(true) in the center of a BorderLayout

て烟熏妆下的殇ゞ 提交于 2019-12-08 05:36:25

问题


I tried to use:

container.setScrollableY(true);
container.setScrollVisible(true);

The container is placed in the the center of a BorderLayout.

The container results scrollable, but the scroll bar is not visible (neither during the scrolling nor in other moments). Why?


回答1:


A scrollbar will only appear if you have enough content within the container and fades out when you don't scroll. Make sure to add enough elements to the container to see it and then try scrolling.



来源:https://stackoverflow.com/questions/50079153/codename-one-container-setscrollvisibletrue-in-the-center-of-a-borderlayout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!