gehuangyi20 / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

Position-inferred height of containers broken in IE7 #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have attached an example HTML file which demonstrates the problem. 
Basically, when a child of a container whose height is inferred by
positioning (e.g. it has position absolute or fixed and both top and bottom
specified) uses a percentage height, IE7 is unable to calculate the height
of the child.  Instead it will use any intrinsic height or a default height
for the child.

This problem appears with and without IE8.js included on IE 7.0.5730.11.

I have also attached a naive fix for the problem, which sets the height
style from the calculated height of the container using the
BoundingClientRect.  This solution is a bit costly when the browser window
is resized, because of the need to reflow twice, which may need to be
addressed in whatever solution makes it into IE8.

Original issue reported on code.google.com by kevin...@gmail.com on 16 Dec 2008 at 7:18

Attachments:

GoogleCodeExporter commented 9 years ago
That was actually two bugs. One in MSIE7 and one was in IE7.js. They are both 
fixed in 
version 2.1.

Original comment by dean.edw...@gmail.com on 14 Feb 2010 at 2:52