代号One-BorderLayout中心的container.setScrollVisible(true) [英] Codename One - container.setScrollVisible(true) in the center of a BorderLayout

查看:52
本文介绍了代号One-BorderLayout中心的container.setScrollVisible(true)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用:

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

容器放置在中间

容器的结果是可滚动的,但是滚动条不可见(在滚动过程中或其他任何时候)。为什么?

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

推荐答案

滚动条仅在容器中有足够内容时才会显示,而在不滚动时会淡出。确保将足够的元素添加到容器中才能看到它,然后尝试滚动。

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.

这篇关于代号One-BorderLayout中心的container.setScrollVisible(true)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆