开发者

How to add scrollbar in gwt in flowpanel?

i am developing an mobile application and i have a problem that i can not add scrollbar in it. i want to add scroll bar in my flow panel and i also want to fix my flowpanel's size fit to screen size. if anyone kno开发者_高级运维ws the solution pls tell me thanks in adv....


Window.getClientWidth() and Window.getClientHeight() will give you the client area To add scrolling, just use ScrollPanel


ScrollPanel comes from the Base class SimplePanel and can only have one child.

To add scrollbar, use the below css class:

.add-scrollbar {
    display: block;
    overflow: auto;
}

GWT Code:

FlowPanel panel = new FlowPanel();
panel.setStyleName("add-scrollbar");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜