hwhw/kindlepdfviewer — pull request #558 by kai771 (2012-11-10 21:13:07+00:00)
Title: Fixes bugs with viewport mode reported by tigran123 in #555

This should fix the bug reported by tigran123 in 555. As I thought, the cause was rounding errors. Don't you just love floats? Please test and report.

I'd also like to fix the bug with vertical space too, because the cause is probably the same (rounding error, just in different place). If you can, please provide the file and details.

@dpavlin I said earlier that I don't use pan_x1. It turned out that I do. Formulas can be written without using it, but I think that using it makes them simpler. So, pan_x is set to the left edge of the left column, and pan_x1 is set to the left edge of the right column.