View Single Post
Old 09-20-2014, 02:35 PM   #266
Anak
Guru
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
Quote:
Originally Posted by indyglow View Post
I don't have "Margin Fine Tuning" patch enabled. My observation is that any epub with margins defined in body tags in css get affected. A couple of books with no body tag in css had no cut off at all.
I assume you didn't try the patch?
I use the body tag all the time to define (force) the default values of many selectors, including margin and padding (both set to 0).

I tried it once more:
These values (25) shifts the screen (viewport) to the right:
Code:
replace_int = 957626, 0, 25
# Top margin
replace_int = 95762A, 0, 01
</Patch>
These values (01 or 00) postion the viewport to the center:
Code:
# Left margin
replace_int = 957626, 0, 01
# Top margin
replace_int = 95762A, 0, 01
</Patch>
If you take a closer look at the initial values of the patch you'll notice that the defaults are 21 (left), and 22 (top). This causes the viewport being off center.
Code:
# Initial replaces
replace_bytes = 957626, 19 46, 00 21
replace_bytes = 95762A, 1A 46, 00 22
Anak is offline   Reply With Quote