summaryrefslogtreecommitdiff
path: root/android/src
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-02-05 10:34:34 +0000
committerRobin Watts <robin.watts@artifex.com>2013-02-05 15:55:00 +0000
commit9b922accbdee37f7b255765124c123cb9ec5f160 (patch)
treed206c6a2e6587ea3c98790c091adb466a484425e /android/src
parent5dded1e3847bc091c09e49ee083a7586d30335f8 (diff)
downloadmupdf-9b922accbdee37f7b255765124c123cb9ec5f160.tar.xz
Android: reflow - get zoom working again
Diffstat (limited to 'android/src')
-rw-r--r--android/src/com/artifex/mupdfdemo/MuPDFReflowView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/src/com/artifex/mupdfdemo/MuPDFReflowView.java b/android/src/com/artifex/mupdfdemo/MuPDFReflowView.java
index 90d0ec8e..dbca5af1 100644
--- a/android/src/com/artifex/mupdfdemo/MuPDFReflowView.java
+++ b/android/src/com/artifex/mupdfdemo/MuPDFReflowView.java
@@ -65,7 +65,7 @@ public class MuPDFReflowView extends WebView implements MuPDFView {
}
public void setScale(float scale) {
- loadUrl("javascript:document.getElementById('content').style.fontSize=\""+(int)(scale*100)+"%\"");
+ loadUrl("javascript:document.getElementById('content').style.zoom=\""+(int)(scale*100)+"%\"");
requestHeight();
}