mizukimakiyama / ie7-js

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

position:fixed doesn't work on dynamically modified divs #279

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. $('#foo').css({ position: 'fixed' })
2. scroll window

What is the expected output?  $('#foo') should be fixed
What do you see instead?   It isn't:

What version of the product are you using? On what operating system?
IE6 (WinXP4.3), IE7.js 2.1(beta4)

Please provide any additional information below.

position:fixed works fine on elements declared thus statically, but not when 
attaching them.
I'm trying to see if I can call the init code in IE7-fixed.js dynamically, 
after attaching that property, which /looks/ like it should be something like:

 IE7.CSS.addRecalc("position", "fixed", _positionFixed, "absolute");

except that _positionFixed is declared lexically within a funcion scope, and so 
it doesn't exist anymore when I try to call this.  I don't actually 
*understand* how the init stuff works, so I may be barking up the wrong tree 
entirely, of course!

Any suggestions/fix?

Original issue reported on code.google.com by hakim.ca...@gmail.com on 7 Sep 2010 at 10:35

GoogleCodeExporter commented 8 years ago
Similar problem her: position:fixed; gets div fixed, but somehow the position 
is fixed in a behavior like relative instead. And it does not count to change 
the position of the div.

Original comment by peter.ko...@gmail.com on 15 Dec 2011 at 10:32