Let me share what I have experienced.
You can use a HTMLPanel - which has a flow layout just like native
rendering of HTML. You dont need to use the Label widget in that case.
<g:HTMLPanel>
Search : <g:TextBox> <g:Button>
</g:HTMLPanel>
This avoids the unnecessary widget ( the lesser the widgets faster your
app).
Also, I usually use a One of the LayoutPanels - ( DockLayoutPanel
especially ) as a top level layout system added to RootLayoutPanel.
Inside the panel, use HTMLPanel as top level widget. This I found to
have a good consistent look and feel across browsers ( Firefox and
Chrome for sure - IE not so sure).
Hope this helps.
Prashant
On 15-08-2010 00:24, Thamizharasu S wrote:
Hi,
Layout in GWT is seems to little bit complex from my perspective. I
created one sample search page which contains on the following
components,
HorizontalLayoutPanel
-Label
-TextBox
-Button
This simple layout is not as common in all the browsers. For example,
this layout looks somehow perfect in FF browser. But in Chrome, the
textbox and button control is aligned properly.
Can anyone help me?
--
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.