On 07/02/2012 03:59, Rob wrote:
Hi,

The following code creates a Canvas, and places it in a SimplePanel,
with some borders to highlight spacing issues.  For some reason there
are a few pixels of margin/padding under the canvas.  If I go into
firebug or Chrome's inspector, the paddings and margins are all zero,
and if I copy the HTML from there to a static file, the extra space
doesn't appear in the static file.  This seems like a bug, but I'm
dizzy from looking at it too long... anyone else seen this?

I see it in Firefox 9 (compiled), Safari (compiled) and Chrome 16
(compiled and hosted mode), all of these on Mac OS X 10.7.  No other
systems or browsers tested.

In a static HTML, I see the same thing than in the GWT window (I copied the generated code, so there is little surprise here). Inspecting with Firebug the static version, in the Computed tab, I see a line-height property set to 22px. Looks like being the default, not sure where it comes from.
If I set it to, say, 10px, the bottom margin disappears.
Idem if I add the line:

s.setProperty("lineHeight", 10, Style.Unit.PX);

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

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

Reply via email to