r3255 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r3254‎ | r3255 | r3256 >
Date:01:15, 22 April 2004
Author:gabrielwicke
Status:old
Tags:
Comment:
IE6 textarea fix: No more js used, instead an insane css combination
Modified paths:
  • /trunk/phase3/stylesheets/IEFixes.js (modified) (history)
  • /trunk/phase3/stylesheets/monobook/IE60Fixes.css (modified) (history)
  • /trunk/phase3/stylesheets/monobook/main.css (modified) (history)

Diff [purge]

Index: trunk/phase3/stylesheets/monobook/IE60Fixes.css
@@ -55,7 +55,15 @@
5656 line-height: 0;
5757 }
5858 textarea {
59 - overflow: scroll;
60 - overflow-x: hidden;
 59+ overflow: auto;
 60+ width: 99%;
 61+ /* same negative margin as on #portal-column-content
 62+ don't ask why..*/
 63+ margin-left: -12.2em;
6164 }
 65+#tawrapper {
 66+ width: 100%;
 67+ text-align: left;
 68+ overflow: hidden;
 69+}
6270 /*{ border:1px solid Red !important;}*/
Index: trunk/phase3/stylesheets/monobook/main.css
@@ -661,7 +661,7 @@
662662 display: block;
663663 height: 155px;
664664 width: 135px;
665 - background: url(wiki.png) no-repeat !important;
 665+ background: url(wiki.png) no-repeat;
666666 background-repeat: no-repeat;
667667 text-decoration: none;
668668 }
Index: trunk/phase3/stylesheets/IEFixes.js
@@ -8,13 +8,8 @@
99 // replaced by special indexed logo for now
1010 //fixalpha();
1111 if(version == 6) {
12 - relativeforfloats();
13 - fixtextarea();
1412 var wrapper = document.getElementById('tawrapper');
15 - if(wrapper) {
16 - //wrapper.attachEvent("onclick", fixtextarea);
17 - window.onresize = refixtextarea;
18 - }
 13+ if (!wrapper) relativeforfloats();
1914 }
2015 }
2116
@@ -29,38 +24,9 @@
3025 logoa.style.backgroundImage = "none";
3126 logoa.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='image')";
3227 }
33 -
34 -
35 -
36 - /*
37 - for (i=0; i<document.all.length; i++){
38 - if(document.all[i].currentStyle && document.all[i].currentStyle.backgroundImage) {
39 - var bg = document.all[i].currentStyle.backgroundImage;
40 - } else {
41 - bg = false;
42 - }
43 - if (bg){
44 - if (bg.match(/\.png/i) != null){
45 - var mypng = bg.substring(5,bg.length-2);
46 - document.all[i].style.backgroundImage = "none";
47 - document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='image')";
48 - }
49 - }
50 - }*/
5128 }
5229 }
5330
54 -function fixtextarea() {
55 - var wrapper = document.getElementById('tawrapper');
56 - if(wrapper) {
57 - wrapper.style.width = 'auto';
58 - wrapper.style.width = (wrapper.offsetWidth - 4) + 'px';
59 - }
60 -}
61 -function refixtextarea () {
62 - setTimeout("fixtextarea()",10);
63 -}
64 -
6531 // fix ie6 disappering float bug
6632 function relativeforfloats() {
6733 var bc = document.getElementById('bodyContent');

Status & tagging log