From 086ede3705823a966f89995ab14bb60bc9706688 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Mar 2013 12:07:45 +0530 Subject: [PATCH] Reduce negative check value for when to not use bounding rect with anchors. --- resources/compiled_coffeescript.zip | Bin 70081 -> 70080 bytes src/calibre/ebooks/oeb/display/paged.coffee | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/compiled_coffeescript.zip b/resources/compiled_coffeescript.zip index ccc9b67225c25ebe06b8a889141f9cc9a7a97cca..782a26a0c243bca020c48e3cb05a301b99aa7e4a 100644 GIT binary patch delta 227 zcmX@OnB~A?7Ks3FW)=|!5O|c3>*R25-;{r$3=IE5Cp)xDPB#!>!XJwGGQWV2ck9z7kkN$k0|-k`W-JriXxQV)WS}|uqo>H` zOP={Wn?IDU7T^3}idoh4J^@BKCI*J->jW4zr^oXHIj-!}>-ibInB-+awCMB){ESix z7{)RngD+|jrQZCEBGZ3?4AH5Di0BJ2nlNd!LpW6eKt04pp&6#xJL diff --git a/src/calibre/ebooks/oeb/display/paged.coffee b/src/calibre/ebooks/oeb/display/paged.coffee index fdb83bf2f1..405b26a9f6 100644 --- a/src/calibre/ebooks/oeb/display/paged.coffee +++ b/src/calibre/ebooks/oeb/display/paged.coffee @@ -416,7 +416,7 @@ class PagedDisplay # https://bugs.launchpad.net/calibre/+bug/1132641 for a test case. # The usual symptom of the inaccuracy is br.top is highly negative. br = elem.getBoundingClientRect() - if br.top < -1000 + if br.top < -100 # This only works because of the preceding call to # elem.scrollIntoView(). However, in some cases it gives # inaccurate results, so we prefer the bounding client rect,