View Single Post
Old 09-23-2014, 11:06 PM   #298
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,054
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Anak View Post
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
Do we patch it like

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>
or like

Code:
# Initial replaces
replace_bytes = 957626, 19 46, 00 01
replace_bytes = 95762A, 1A 46, 00 01
JSWolf is offline   Reply With Quote