开发者

GridLayout in ScrolledForm not showing scrollBar

开发者 https://www.devze.com 2023-02-07 11:41 出处:网络
I have components in a View and adding them in a ScrolledForm. But as soon as I use G开发者_运维技巧ridLayout, it is not showing the scrollbars any of the sides.Try setting GridData.widthHint paramete

I have components in a View and adding them in a ScrolledForm. But as soon as I use G开发者_运维技巧ridLayout, it is not showing the scrollbars any of the sides.


Try setting GridData.widthHint parameter to some relatively small value like 100. This will force the layout to not get too wide. Make sure to also set it to fill horizontally.

This should be all that's necessary if your layout doesn't have any controls that increase their height as width is constrained (like wrapped label). If you do, you will notice that your vertical scrollbars have too much slack in them. Reply here and I will give you the rest of the solution.

0

精彩评论

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