>
> For example, the solution posted by Jens works perfectly in isolation, but 
> when I put it into a LayoutPanel it didn't work at all.
>

Really? For me it works. Copy the example UiBinder xml and put it into a 
RootLayoutPanel:

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent";>
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
    xmlns:g="urn:import:com.google.gwt.user.client.ui">
    <ui:style>
        .layer {
            background-color: red;
        }

        .label {
            background-color: orange;
            margin-right: 70px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .button {
            width: 50px;
            float: right;
        }

        .clear {
            clear: right;
        }
    </ui:style>
    <g:LayoutPanel>

        <g:layer top="20" bottom="20" left="20" width="200">
            <g:HTMLPanel styleName="{style.layer}">
                LEFT
            </g:HTMLPanel>
        </g:layer>

        <g:layer top="20" height="60" left="240" right="20">
            <g:HTMLPanel styleName="{style.layer}">
                <div>
                    <g:Button addStyleNames="{style.button}">&gt;</g:Button>
                    <g:Label addStyleNames="{style.label}">Label Label 
Label</g:Label>
                    <div class="{style.clear}"></div>
                </div>
                <div>
                    <g:Button addStyleNames="{style.button}">&gt;</g:Button>
                    <g:Label addStyleNames="{style.label}">Label Label 
Label</g:Label>
                    <div class="{style.clear}"></div>
                </div>
            </g:HTMLPanel>
        </g:layer>

        <g:layer top="100" bottom="20" left="240" right="20">
            <g:HTMLPanel styleName="{style.layer}">
                CENTER
            </g:HTMLPanel>
        </g:layer>

    </g:LayoutPanel> </ui:UiBinder>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/QN15RdRytbsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to