开发者

Scrolling a DetailViewer in SmartClient

Using SmartClient:

I have a VLayout composed of a DetailViewer (that monitors selection changes in a ListGrid) and a HLayout (that holds some buttons).

Now, when the user selects rows in the ListGrid, 开发者_StackOverflow中文版the DetailViewer "grows" and creates a Scrollbar.

In consequence the bottom HLayout is also contained in the Scrollbar. I would like to avoid this. My intention is to have the bottom HLayout always visible (i.e. the Scrollbar would contain the DetailViewer only).

How can I do this?

(Also posted here.)


Set overflow:auto on the DetailViewer.


I am pursuing that there is only one VLayout and inside it there is one HLayout (with buttons) and a DetailViewer.

Now if you want your buttons to be always visible shift buttons on the top of VLayout and set overflow property as "visible" with some height say 50. Now second child inside VLayout should be DetailViewer with overflow property as "auto", so if required DetailViewer will show scrollbars.

Secondly, you can switch the position of HLayout and DetailViewer but do not forget to set height and overflow properties.

Thanks shaILU

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜