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:
parent
7163d4dded
commit
d48b3ccd69
@ -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);
|
||||
},
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user