Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -492,6 +492,7 @@ |
493 | 493 | if (delta == 0) { |
494 | 494 | //reduce width by 20 pixels in order to prevent horizontal scrollbar from showing up |
495 | 495 | zp_img.width = pr_container.offsetWidth-20; |
| 496 | + pr_container.style.cssText = self.container_css; //needed by IE6 |
496 | 497 | } |
497 | 498 | else{ |
498 | 499 | var old_width = zp_img.width; |
— | — | @@ -505,6 +506,7 @@ |
506 | 507 | |
507 | 508 | for(var dw=s; dw != delta_w; dw=dw+s){ |
508 | 509 | zp_img.width = old_width + dw;//this adds 1 pixel |
| 510 | + pr_container.style.cssText = self.container_css; //needed by IE6 |
509 | 511 | if(xx){ |
510 | 512 | //magnification factor |
511 | 513 | var lambda = (old_width+dw)/old_width; |
— | — | @@ -659,6 +661,7 @@ |
660 | 662 | pr_container.onmousemove = pr_move; |
661 | 663 | if (pr_container.addEventListener) |
662 | 664 | pr_container.addEventListener('DOMMouseScroll', pr_zoom_wheel, false); |
| 665 | + pr_container.onmousewheel = pr_zoom_wheel;//IE,Opera. |
663 | 666 | } |
664 | 667 | |
665 | 668 | table.setAttribute("id", "textBoxTable"); |