Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -416,12 +416,20 @@ |
417 | 417 | is_zoom = false; |
418 | 418 | self.container_css = self.container_css.replace("overflow:hidden","overflow:auto"); |
419 | 419 | self.container_css = self.container_css.replace("cursor:crosshair","cursor:default"); |
| 420 | + sl = pr_container.scrollLeft;//save scrollbar value for Opera, Chrome |
| 421 | + st = pr_container.scrollTop; |
420 | 422 | pr_container.style.cssText = self.container_css; |
| 423 | + pr_container.scrollLeft = sl; |
| 424 | + pr_container.scrollTop = st; |
421 | 425 | } else { |
422 | 426 | is_zoom = true; |
423 | 427 | self.container_css = self.container_css.replace("overflow:auto","overflow:hidden"); |
424 | 428 | self.container_css = self.container_css.replace("cursor:default","cursor:crosshair"); |
| 429 | + sl = pr_container.scrollLeft; |
| 430 | + st = pr_container.scrollTop; |
425 | 431 | pr_container.style.cssText = self.container_css; |
| 432 | + pr_container.scrollLeft = sl; |
| 433 | + pr_container.scrollTop = st; |
426 | 434 | } |
427 | 435 | } |
428 | 436 | is_drag = false; |