Center content of DockLayoutPanel North?

72 views
Skip to first unread message

membersound

unread,
Jan 2, 2013, 7:47:54 AM1/2/13
to google-we...@googlegroups.com
How could I center everything that is placed eg in the north/east/west/south segment of a docklayoutpanel?
The following does not work...
<ui:style>
.align {
float: center;
}
</ui:style>

<g:DockLayoutPanel> <g:north
styleName='{style.align}'><g:Label>A</g:Label></g:north>


Andy Stevko

unread,
Jan 3, 2013, 9:28:51 AM1/3/13
to google-web-toolkit
Perhaps apply  the style to the Label rather than the north element?


--
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/-/-FbPe35TP64J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
-- A. Stevko
===========
"If everything seems under control, you're just not going fast enough." M. Andretti




membersound

unread,
Jan 3, 2013, 9:49:33 AM1/3/13
to google-we...@googlegroups.com
If this would work (cannot test this atm), then this would mean I have to apply the center style to each of the elements contained in the panel.

But that's exactly what I'm trying to avoid, and why I'm looking for a solution to just tell the whole panel to center everything that is contained there.


Am Donnerstag, 3. Januar 2013 15:28:51 UTC+1 schrieb Stevko:
Perhaps apply  the style to the Label rather than the north element?
Reply all
Reply to author
Forward
0 new messages