mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
js
This commit is contained in:
parent
0774e4a063
commit
cc7babd901
@ -19,14 +19,10 @@ var pdf2htmlEX = (function(){
|
||||
default_scale_ratio : 1.0,
|
||||
cur_scale_ratio : 1.0,
|
||||
|
||||
|
||||
|
||||
/* Constants */
|
||||
render_timeout : 200,
|
||||
scale_step : 0.9,
|
||||
|
||||
|
||||
|
||||
init_before_loading_content : function() {
|
||||
/*hide all pages before loading, will reveal only visible ones later */
|
||||
this.pre_hide_pages();
|
||||
@ -170,7 +166,7 @@ var pdf2htmlEX = (function(){
|
||||
var pb = $(this.page_boxes[i]);
|
||||
p.height(pb.height() * ratio);
|
||||
p.width(pb.width() * ratio);
|
||||
pb.css('transform', 'scale('+ratio+')');
|
||||
pb.css('transform', 'scale('+ratio.toFixed(3)+')');
|
||||
}
|
||||
|
||||
this.schedule_render();
|
||||
|
Loading…
Reference in New Issue
Block a user