avoid stupid IE6 bug with frames and scrollbars
authorrobsiemb <robsiemb@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 23 Oct 2002 20:22:02 +0000 (20:22 +0000)
committerrobsiemb <robsiemb@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 23 Oct 2002 20:22:02 +0000 (20:22 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3968 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index 662807a69a6ed8e19748778261155ef0ad9b5c40..227c857582349729bc1710cff076ad4c7b7e2283 100644 (file)
@@ -46,7 +46,24 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
        do_hook("generic_header");
     }
     
-    echo "\n<title>$title</title>$xtra</head>\n\n";
+    echo "\n<title>$title</title>$xtra\n";
+
+    /* work around IE6's scrollbar bug */
+    echo <<<ECHO
+<style type="text/css">
+<!--
+  /* avoid stupid IE6 bug with frames and scrollbars */
+  body { 
+      voice-family: "\"}\""; 
+      voice-family: inherit; 
+      width: expression(document.documentElement.clientWidth - 30);
+  }
+-->
+</style>
+
+ECHO;
+
+    echo "\n</head>\n\n";
 }