Friday, July 29, 2011

Re: Lots of DIVs

Very smart :)

Alisson Prestes


On Thu, Jul 28, 2011 at 4:30 PM, Thomas Broyer <t.broyer@gmail.com> wrote:
First, as soon as you use a layout panel, it adds a div to the document's body, using it as a ruler to measure centimeters in pixels (this is the very first div here, moved out of view using top:-20cm).
Then, each layout panel is a div, containing another ruler to measure EMs and EXs (it has to be repeated for each panel because it depends on the font-size applied locally or inherited).
Then, each child of layout panel lives in its own div (I don't remember the rationale for this, but it had to be done so it works in all browsers and allows some kinds of styling –borders and margins–).

So here, you have the CM rule, followed by the RootLayoutPanel, containing its own ruler and a child. That child in turns is a layout panel, with its own ruler and a single child.

--
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/-/cUsZ2VaB3m4J.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

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

1 comment: