Raconeisteron / nookdevs

Automatically exported from code.google.com/p/nookdevs
0 stars 0 forks source link

[nookBrowser] not all contents of page are shown on e-inc display while paging with hardware turn buttons #172

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. correct problems in code - it seems uncorrectly calculated number of lines - 
according to number of pages that listed by turn buttons
2.
3.

What is the expected output? What do you see instead?
for ex. pda.lenta.ru - openinng page, then listing with turn buttons with 
normal font - bottom of page doesn't appear on e-inc screen. It correcting with 
changing font size for  a once,then when listing again - see the same problem 
with another font size.

What version of the product are you using? On what operating system?
0.0.9 on Nook

Please provide any additional information below.

Original issue reported on code.google.com by freegat...@gmail.com on 20 May 2011 at 7:47

GoogleCodeExporter commented 8 years ago
why subsctracting200 in this one?

   private final void pageDown() {
        if (webview_eink != null) {
            int cury = webview_eink.getScrollY();
            int hmax = webview_eink.getContentHeight() - 200;
            if (hmax < 0) {
                hmax = 0;
            }
            int newy = cury + WEB_SCROLL_PX;
            if (newy > hmax) {
                newy = hmax;
            }
            if (cury != newy) {
                webview_eink.scrollTo(0, newy);
            }
        }
    }

Original comment by freegat...@gmail.com on 20 May 2011 at 7:58