Skip to content

Commit

Permalink
revert width and height.
Browse files Browse the repository at this point in the history
  • Loading branch information
matsuu committed Mar 25, 2012
1 parent fbf16e9 commit 169fb04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/viewer.css
Expand Up @@ -222,6 +222,8 @@ canvas {
}

.page {
width: 816px;
height: 1056px;
margin: auto 10px;
position: relative;
overflow: hidden;
Expand Down
2 changes: 2 additions & 0 deletions web/viewer.js
Expand Up @@ -657,6 +657,8 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,

this.update = function pageViewUpdate(scale) {
this.scale = scale || this.scale;
div.style.width = (this.width * this.scale) + 'px';
div.style.height = (this.height * this.scale) + 'px';

while (div.hasChildNodes())
div.removeChild(div.lastChild);
Expand Down

0 comments on commit 169fb04

Please sign in to comment.