16 messages in com.googlegroups.google-gadgets-api[Google-Gadgets-API] Re: Works on Moz...
FromSent OnAttachments
Peter28 Apr 2008 14:30 
Jerome (Guru)28 Apr 2008 14:41 
Peter29 Apr 2008 12:53 
Peter29 Apr 2008 12:54 
String30 Apr 2008 01:52 
Jerome (Guru)30 Apr 2008 21:46 
Peter02 May 2008 16:06 
Jerome (Guru)03 May 2008 21:03 
Vision Jinx (Guru)03 May 2008 23:48 
Jerome (Guru)04 May 2008 21:00 
Vision Jinx (Guru)05 May 2008 00:05 
Peter05 May 2008 09:13 
Vision Jinx (Guru)05 May 2008 15:40 
Jerome (Guru)05 May 2008 15:48 
Justin McConnell06 May 2008 22:13 
Vision Jinx (Guru)08 May 2008 06:42 
Subject:[Google-Gadgets-API] Re: Works on Mozilla, no display on IE
From:Justin McConnell (bool@gmail.com)
Date:05/06/2008 10:13:14 PM
List:com.googlegroups.google-gadgets-api

On May 4, 9:00 pm, "Jerome (Guru)" <jero@gmail.com> wrote:

I was not able to figure out a reason why the absolute positioning would cause the bitmap to not display. Did you find an explaination for this IE behavior, or does this looks like another case of IE not handling the CSS2 properly?

Since the Google parent div has a specified height of auto the browser must compute its actual height based on the sum of the heights of its child nodes. In this instance, the sum comes out to 0 since the only child div has a position of absolute and, as a result, is removed from normal flow. The browser then applies overflow:hidden and, bam, you can't see anything inside of the parent div. I'm not sure how the CSS spec says you're supposed to climb out of this hole. But, in standards compliance mode the browsers do.

When you set the child div's position to relative it is returned to normal flow. The parent div's height is then calculated to be the height of the child div, or 130px. Another fix would be to set an explicit height on the parent div -- if it weren't being served automatically from the ig servers.

So directly this is related to the CSS in the div the ig servers automatically insert into gadgets. But indirectly, this is a consequence of running gadgets in quirks mode. If the gadget were rendered in standards compliance mode then IE would have correctly expanded the height of the parent div and this wouldn't have been an issue. It's the reverse of the bug detailed here: http://www.positioniseverything.net/explorer/expandingboxbug.html

I hope the Google dev team takes this as more evidence that being able to control the rendering mode of gadgets would be a valuable tool to developers.