Code

added website to trunk
[rrdtool-all.git] / website / inc / IE7 / ie7-squish.js
diff --git a/website/inc/IE7/ie7-squish.js b/website/inc/IE7/ie7-squish.js
new file mode 100644 (file)
index 0000000..e5a1972
--- /dev/null
@@ -0,0 +1,45 @@
+/*\r
+       IE7, version 0.9 (alpha) (2005-08-19)\r
+       Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)\r
+       License: http://creativecommons.org/licenses/LGPL/2.1/\r
+*/\r
+IE7.addModule("ie7-squish", function() {\r
+\r
+/* ---------------------------------------------------------------------\r
+\r
+  Squish some IE bugs!\r
+\r
+  Some of these bug fixes may have adverse effects so they are\r
+  not included in the standard library. Add your own if you want.\r
+\r
+  -dean\r
+\r
+--------------------------------------------------------------------- */\r
+\r
+// @NOTE: ie7Layout.boxSizing is the same as the "Holly Hack"\r
+\r
+// "doubled margin" bug\r
+// http://www.positioniseverything.net/explorer/doubled-margin.html\r
+ie7CSS.addFix(/float\s*:\s*(left|right)/, "display:inline;$1");\r
+\r
+if (ie7Layout) {\r
+       // "peekaboo" bug\r
+       // http://www.positioniseverything.net/explorer/peekaboo.html\r
+       if (appVersion >= 6) ie7CSS.addRecalc("float", "left|right", function($element) {\r
+               ie7Layout.boxSizing($element.parentElement);\r
+               // "doubled margin" bug\r
+               $element.runtimeStyle.display = "inline";\r
+       });\r
+\r
+       // "unscrollable content" bug\r
+       // http://www.positioniseverything.net/explorer/unscrollable.html\r
+       ie7CSS.addRecalc("position", "absolute|fixed", function($element) {\r
+               if ($element.offsetParent && $element.offsetParent.currentStyle.position == "relative")\r
+                       ie7Layout.boxSizing($element.offsetParent);\r
+       });\r
+}\r
+\r
+//# // get rid of Microsoft's pesky image toolbar\r
+//# if (!complete) document.write('<meta http-equiv="imagetoolbar" content="no">');\r
+\r
+});\r