Skip to content

Commit 4781ad9

Browse files
committed
Revert #33
1 parent b1cfc13 commit 4781ad9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • public/javascripts/DV/models

public/javascripts/DV/models/page.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ DV.model.Pages.prototype = {
9393
// Update the height for a page, when its real image has loaded.
9494
updateHeight: function(image, pageIndex) {
9595
var h = this.getPageHeight(pageIndex);
96-
// we want to preserve the original image's ratio, but not it's literal height
97-
var ratio = image.height / image.width;
98-
// the height will be adjusted according to the real width of the page taking into account the original ratio
99-
var height = this.width * ratio * (this.zoomLevel > this.BASE_WIDTH ? 0.7 : 1.0);
100-
96+
var height = image.height * (this.zoomLevel > this.BASE_WIDTH ? 0.7 : 1.0);
10197
if (image.width < this.baseWidth) {
10298
// Not supposed to happen, but too-small images sometimes do.
10399
height *= (this.baseWidth / image.width);

0 commit comments

Comments
 (0)