r60983 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60982‎ | r60983 | r60984 >
Date:19:56, 12 January 2010
Author:thomasv
Status:ok
Tags:
Comment:
fixes for IE6
Modified paths:
  • /trunk/extensions/ProofreadPage/proofread.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/proofread.js
@@ -492,6 +492,7 @@
493493 if (delta == 0) {
494494 //reduce width by 20 pixels in order to prevent horizontal scrollbar from showing up
495495 zp_img.width = pr_container.offsetWidth-20;
 496+ pr_container.style.cssText = self.container_css; //needed by IE6
496497 }
497498 else{
498499 var old_width = zp_img.width;
@@ -505,6 +506,7 @@
506507
507508 for(var dw=s; dw != delta_w; dw=dw+s){
508509 zp_img.width = old_width + dw;//this adds 1 pixel
 510+ pr_container.style.cssText = self.container_css; //needed by IE6
509511 if(xx){
510512 //magnification factor
511513 var lambda = (old_width+dw)/old_width;
@@ -659,6 +661,7 @@
660662 pr_container.onmousemove = pr_move;
661663 if (pr_container.addEventListener)
662664 pr_container.addEventListener('DOMMouseScroll', pr_zoom_wheel, false);
 665+ pr_container.onmousewheel = pr_zoom_wheel;//IE,Opera.
663666 }
664667
665668 table.setAttribute("id", "textBoxTable");

Status & tagging log