<g:DockLayoutPanel styleName="{style.all-content}" unit="PX" height="200px" width="400px">
or <g:DockLayoutPanel styleName="{style.all-content}" unit="PX" ui:field="dock"> @UiField DockLayoutPanel dock; .. dock.setHeight("200px"); dock.setWidth("400px"); El 6 de agosto de 2010 12:24, Jose Luis Estrella Campaña < jlecamp...@gmail.com> escribió: > Hello Falcon, > > Ok, first thing first, How can I set the width for my > DockLayoutPanel ? what's the best way also ? > > On the other hand, I'm not quite sure what my DockLayoutPanel is > doing, because the groups:HeaderContainerWidget is displayed with a > left alignment, but Then again... that could also mean it's taking the > whole space as you have said. But it's definitely not centered. > Something that I wanted to mention it's that I want to achieve a > frozen Layout. > > Let me know your thoughts. please don't forget to mention to me how to > set the width for the DockPanelLayout. > > a million Thanks, > > Jose. > > On Aug 6, 8:55 am, Falcon <msu.fal...@gmail.com> wrote: > > Your DockLayoutPanel will need an explicit size somewhere (either by > > specifying width or by using top, left, right, bottom with > > positioning). > > > > I created a couple of quick examples for you: > http://www.lemonrage.com/nate/misc/centerViaMargins.htmlhttp://www.lemonrage.com/nate/misc/centerFailNoWidth.html > > > > If you take the width off, it expands to fill all of the space, which > > I suspect is what's happening to your DockLayoutPanel. > > > > On Aug 5, 8:13 pm, Jose Luis Estrella Campaña <jlecamp...@gmail.com> > > wrote: > > > > > > > > > Hello there ! > > > > > I'll keep this Question as simple as I can, just for today... I'm > > > using UiBinders, and I've got this Widget which I want to be centered, > > > so I'm using the margin selector, but I does not work. > > > > > Here's my code Snippet: > > > > > <!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" > > > xmlns:groups="urn:import:org.jose.web.client.widget"> > > > <ui:style> > > > .all-content{ > > > margin: auto; > > > } > > > </ui:style> > > > > > <g:DockLayoutPanel styleName="{style.all-content}" unit="PX"> > > > > > <g:north size="100"> > > > <groups:HeaderContainerWidget /> > > > </g:north> > > > <g:center> > > > <groups:ContentContainer ui:field="content" /> > > > </g:center> > > > > > </g:DockLayoutPanel> > > > > > </ui:UiBinder> > > > > > I wanted to have it all centered as the result of using the 'all- > > > content' selector, But it doesn't work. Could someone please advice me > > > on what I am doing wrong ? > > > > > Thank you very much ! > > > > > Sincerely, > > > > > Jose. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- http://ajax-development.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.