mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2cd5a083ae
If getAutoBBox is fed with a blank page the returned bbox will be much smaller than the native page dimensions. The problem is that in zoom to 'content*' mode document renderer will try to render the whole page at a zoom level that can cover the screen with the bbox region of the page. That's if the blank page size is 3000*4000 and the returned autobbox is 300*400, the screen size is 600*800, then the page will be rendered in 3000*(600/300)*4000*(800/400) which is so large that the cache manager will not accept. This patch just check if the returned autobbox is considerablely much smaller than the native page dimensions. If so it will return the manual bbox. This patch should fix #293. And it's tested with the case provided by @Markismus in #291. |
11 years ago | |
---|---|---|
.. | ||
apps/filemanager | 11 years ago | |
document | 11 years ago | |
ui | 11 years ago | |
JSON.lua | 11 years ago | |
cache.lua | 11 years ago | |
dbg.lua | 11 years ago | |
gettext.lua | 11 years ago | |
math.lua | 11 years ago | |
settings.lua | 11 years ago |