Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -551,9 +551,8 @@ |
552 | 552 | self.vertHeight = 700; |
553 | 553 | } |
554 | 554 | else{ |
555 | | - if(document.selection && !is_gecko){ |
| 555 | + if(document.selection && !is_gecko) |
556 | 556 | self.vertHeight = Math.ceil(document.body.clientHeight*0.4); |
557 | | - } |
558 | 557 | else |
559 | 558 | self.vertHeight = Math.ceil(window.innerHeight*0.4); |
560 | 559 | } |
— | — | @@ -570,14 +569,13 @@ |
571 | 570 | } |
572 | 571 | else{ |
573 | 572 | if(!horizontal_layout){ |
574 | | - cont_w = self.DisplayWidth+"px"; |
575 | 573 | img_w = self.DisplayWidth; |
| 574 | + self.container_css = "background:#000000; overflow:hidden; width:"+self.DisplayWidth+"px; height:"+self.vertHeight+"px;"; |
576 | 575 | } |
577 | 576 | else{ |
578 | | - cont_w = "100%"; |
579 | 577 | img_w = 0; //prevent the container from being resized when the image is downloaded. |
| 578 | + self.container_css = "background:#000000; overflow-x:hidden; overflow-y:scroll; width:100%; height:"+self.vertHeight+"px;"; |
580 | 579 | } |
581 | | - self.container_css = "background:#000000; overflow:hidden; width:"+cont_w+"; height:"+self.vertHeight+"px;"; |
582 | 580 | image_container.innerHTML = "<img id=\"ProofReadImage\" src=\""+proofreadPageViewURL+"\" width=\""+img_w+"\" />"; |
583 | 581 | image_container.style.cssText = self.container_css; |
584 | 582 | document.getElementById("wpTextbox1").style.cssText = "height:"+self.vertHeight+"px"; |