From cc7babd901f40071fa2c140569ef28bea187b069 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sun, 23 Sep 2012 00:24:17 +0800 Subject: [PATCH] js --- share/pdf2htmlEX.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/share/pdf2htmlEX.js b/share/pdf2htmlEX.js index 007529a..7335550 100644 --- a/share/pdf2htmlEX.js +++ b/share/pdf2htmlEX.js @@ -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();