X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=website%2Finc%2FIE7%2Fie7-squish.js;fp=website%2Finc%2FIE7%2Fie7-squish.js;h=e5a1972f7821f0bac1875ff475d100e092411567;hb=d1e370000219d7f46144fcda05ff6884da89042f;hp=0000000000000000000000000000000000000000;hpb=ea3ebe6e517f024dd6c2a36898082ae4855becf7;p=rrdtool-all.git diff --git a/website/inc/IE7/ie7-squish.js b/website/inc/IE7/ie7-squish.js new file mode 100644 index 00000000..e5a1972f --- /dev/null +++ b/website/inc/IE7/ie7-squish.js @@ -0,0 +1,45 @@ +/* + IE7, version 0.9 (alpha) (2005-08-19) + Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/) + License: http://creativecommons.org/licenses/LGPL/2.1/ +*/ +IE7.addModule("ie7-squish", function() { + +/* --------------------------------------------------------------------- + + Squish some IE bugs! + + Some of these bug fixes may have adverse effects so they are + not included in the standard library. Add your own if you want. + + -dean + +--------------------------------------------------------------------- */ + +// @NOTE: ie7Layout.boxSizing is the same as the "Holly Hack" + +// "doubled margin" bug +// http://www.positioniseverything.net/explorer/doubled-margin.html +ie7CSS.addFix(/float\s*:\s*(left|right)/, "display:inline;$1"); + +if (ie7Layout) { + // "peekaboo" bug + // http://www.positioniseverything.net/explorer/peekaboo.html + if (appVersion >= 6) ie7CSS.addRecalc("float", "left|right", function($element) { + ie7Layout.boxSizing($element.parentElement); + // "doubled margin" bug + $element.runtimeStyle.display = "inline"; + }); + + // "unscrollable content" bug + // http://www.positioniseverything.net/explorer/unscrollable.html + ie7CSS.addRecalc("position", "absolute|fixed", function($element) { + if ($element.offsetParent && $element.offsetParent.currentStyle.position == "relative") + ie7Layout.boxSizing($element.offsetParent); + }); +} + +//# // get rid of Microsoft's pesky image toolbar +//# if (!complete) document.write(''); + +});