开发者

How can you make a region of a GWT DockLayoutPanel bleed into another?

开发者 https://www.devze.com 2023-01-05 22:16 出处:网络
I use a DockLayoutPanel to split开发者_如何学Python my screen in a left navigation column and a center area. My problem is that the app skinning requires that a selected tab in the navigation column \

I use a DockLayoutPanel to split开发者_如何学Python my screen in a left navigation column and a center area. My problem is that the app skinning requires that a selected tab in the navigation column "overwrite" a 1 pixel wide column of the central area. Is there a way to setup my DockLayoutPanel to do this?


I found my answer. The key is to use a LayoutPanel instead of the DockLayoutPanel. For example:

<g:LayoutPanel>
    <g:layer left="100px" right="0px" >
        <g:LayoutPanel ui:field='centralContainer' />
    </g:layer>
    <g:layer left="0px" width="101px">
        <g:FlowPanel ui:field='navContainer' />
    </g:layer>
</g:LayoutPanel>

Would make the nav bar bleed 1 pixel into the central container. The order is important here since it guarantees that the nav bar will overwrite the content of the central container.

0

精彩评论

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

关注公众号