IE6 textarea fix: No more js used, instead an insane css combination
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 22 Apr 2004 01:15:27 +0000 (01:15 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 22 Apr 2004 01:15:27 +0000 (01:15 +0000)
stylesheets/IEFixes.js
stylesheets/monobook/IE60Fixes.css
stylesheets/monobook/main.css

index 8b2a01a..952280e 100644 (file)
@@ -8,13 +8,8 @@ function hookit() {
     // replaced by special indexed logo for now
     //fixalpha();
     if(version == 6) {
-        relativeforfloats();
-        fixtextarea();
         var wrapper = document.getElementById('tawrapper');
-        if(wrapper) {
-            //wrapper.attachEvent("onclick", fixtextarea);
-            window.onresize = refixtextarea;
-        }
+        if (!wrapper) relativeforfloats();
     }
 }
 
@@ -29,38 +24,9 @@ function fixalpha(){
             logoa.style.backgroundImage = "none";
             logoa.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='image')";
         }
-
-
-    
-    /*
-        for (i=0; i<document.all.length; i++){
-            if(document.all[i].currentStyle && document.all[i].currentStyle.backgroundImage) {
-                var bg = document.all[i].currentStyle.backgroundImage;
-            } else {
-                bg = false;
-            }
-            if (bg){
-                if (bg.match(/\.png/i) != null){
-                    var mypng = bg.substring(5,bg.length-2);
-                    document.all[i].style.backgroundImage = "none";
-                    document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='image')";
-                }
-            }
-        }*/
     }
 }
 
-function fixtextarea() {
-    var wrapper = document.getElementById('tawrapper');
-    if(wrapper) {
-            wrapper.style.width = 'auto';
-            wrapper.style.width = (wrapper.offsetWidth - 4)  + 'px';
-    }
-}
-function refixtextarea () {
-    setTimeout("fixtextarea()",10);
-}
-
 // fix ie6 disappering float bug
 function relativeforfloats() {
     var bc = document.getElementById('bodyContent');
index 81fe499..15a74c5 100644 (file)
@@ -55,7 +55,15 @@ div.visualClear {
     line-height: 0;
 }
 textarea {
-    overflow: scroll;
-    overflow-x: hidden;
+    overflow: auto;
+    width: 99%;
+    /* same negative margin as on #portal-column-content
+    don't ask why..*/
+    margin-left: -12.2em;
+}
+#tawrapper {
+    width: 100%;
+    text-align: left;
+    overflow: hidden;
 }
 /*{ border:1px solid Red !important;}*/
index 961b280..4230a11 100644 (file)
@@ -661,7 +661,7 @@ div.townBox dl dd {
     display: block;
     height: 155px;
     width: 135px;
-    background: url(wiki.png) no-repeat !important;
+    background: url(wiki.png) no-repeat;
     background-repeat: no-repeat;
     text-decoration: none;
 }