1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 20:50:07 +00:00

fixes #506; fixes fit_width/height() in JS

This commit is contained in:
Lu Wang 2015-05-03 12:03:24 +08:00
parent 7163d4dded
commit d48b3ccd69

View File

@ -760,13 +760,13 @@ Viewer.prototype = {
fit_width : function () {
var page_idx = this.cur_page_idx;
this.rescale(this.container.clientWidth / this.pages[page_idx].width(), false);
this.rescale(this.container.clientWidth / this.pages[page_idx].width(), true);
this.scroll_to(page_idx);
},
fit_height : function () {
var page_idx = this.cur_page_idx;
this.rescale(this.container.clientHeight / this.pages[page_idx].height(), false);
this.rescale(this.container.clientHeight / this.pages[page_idx].height(), true);
this.scroll_to(page_idx);
},
/**