Hi London,
Thanks for this. This is the second report I've received of IE6 overlay not displaying. I'm puzzled by this because I can't reproduce it. I would REALLY REALLY like it if someone could post a URL to a page where this occurs so I could look at the details.
Your solution is good as far as it goes. The setting of position:absolute for ie6 is done in the floatbox.js code, and there's additional code required to handle resizing the ie6 overlay when the browser is scrolled or resized. That code section looks like this:
if (this.ieOld) {
this.hideElements('select');
this.fbOverlay.style.position = 'absolute';
this.stretchOverlay()();
this.win.attachEvent('onresize', this.stretchOverlay());
this.win.attachEvent('onscroll', this.stretchOverlay());
}
I'd really like to see why that code is not firing for you.
I have a theory. Floatbox uses conditional compilation to browser detect IE.
/*@cc_on
} else if (true) {
this.ie = true;
this.ieOld = @_jscript_version < 5.7; // less than v7
this.ie8b2 = window.postMessage && navigator.appMinorVersion === 'beta 2'; // ie8beta detect
@*/
Is it possible you have stripped that code out of the .js file, either directly or by running the code through a compresser that is not conditional compilation aware? (This snippet is from v3.11. I think you're using an older version).
Did I mention that I'd REALLY REALLY like to see an online page that exhibits this misbehaviour???