Hi, I had the same problem. Actually, I want to put on the right side of the screen a widget that can have different size. Is there a way to specify a dynamic size ?
Thanks On 25 jan, 02:50, Phil <[email protected]> wrote: > Hi Joe, > > I tried the code you pasted. I think your problem is the size of your > <g:west> element. > You defined unit as "EM" in the <g:DockLayoutPanel>, so the west panel > is 210em. > > I changed the <g:west size="20"> to 20em, and the Body and South areas > showed up. They had been pushed far to the right before (remember, > LayoutPanels use absolute positioning). > > Let me know if this helped. > > Cheers > Phil > > On Jan 25, 4:26 am, Joe Hudson <[email protected]> wrote: > > > > > Hello, > > > I am new to GWT 2.0 and was trying out the uiBinder. I have a simple > > test project to get my feet wet and it isn't working as expected. I > > am only seeing the north and west sections in FireFox (not the center > > and south sections) and in IE I see nothing at all. Could anyone > > please help me understand what I am doing wrong? > > > I do see the DOM for the missing sections (center and south) in > > Firebug but can't understand why they are not showing up. > > > Thank you very much. > > > ---------- FILES --------- > > public class Test implements EntryPoint { > > @Override > > public void onModuleLoad() { > > RootLayoutPanel.get().add(new MainPanel()); > > }} > > > ---------------------------- > > public class MainPanel extends Composite { > > > interface MyUiBinder extends UiBinder<DockLayoutPanel, MainPanel> { > > } > > > private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class); > > > public MainPanel() { > > initWidget(uiBinder.createAndBindUi(this)); > > }} > > > -------------------------- > > <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' > > xmlns:g='urn:import:com.google.gwt.user.client.ui'> > > <g:DockLayoutPanel unit='EM'> > > <g:north size='5'> > > <g:Label>Top</g:Label> > > </g:north> > > <g:center> > > <g:Label>Body</g:Label> > > </g:center> > > <g:west size='210'> > > <g:Label>West</g:Label> > > </g:west> > > <g:south size="3"> > > <g:Label>South</g:Label> > > </g:south> > > </g:DockLayoutPanel> > > </ui:UiBinder> -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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.
