开发者

How do I use SplitLayoutPanel with UIBinder?

开发者 https://www.devze.com 2022-12-23 23:28 出处:网络
How do I use SplitLayoutPanel with UIBinder? I\'ve tried so ma开发者_如何学Pythonny different things but none of them work properly.You\'ll find that SplitLayoutPanel works just like DockLayoutPanel.

How do I use SplitLayoutPanel with UIBinder? I've tried so ma开发者_如何学Pythonny different things but none of them work properly.


You'll find that SplitLayoutPanel works just like DockLayoutPanel. (SplitLayoutPanel is a subclass of DockLayoutPanel.) You may have already read about this in the Developer's Guide section on Layout Panels.

Often, the UiBinder documentation for a class is actually given in the docs for its superclass. Take a look at the documentation for DockLayoutPanel and see if it works for you.


The "Moving to Standards Mode" section of the Developer's Guide page on Layout using Panels says "SplitPanels are very unpredictable in standards mode, and you should almost invariably replace them with SplitLayoutPanel."

If that doesn't solve your issue, then please be more specific as to something that you've tried, what you expected to happen, and what happened instead.


Here is the sample code for SplitLayoutPanel,

<g:SplitLayoutPanel>
    <g:west size="200">
        <g:VerticalPanel />
    </g:west>
    <g:center>
        <g:VerticalPanel />
    </g:center>
    <g:south size="200">
        <g:VerticalPanel />
    </g:south>
    <g:north size="200">
        <g:VerticalPanel />
    </g:north>
</g:SplitLayoutPanel>

Thanks,

Gnik

0

精彩评论

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