The problem is caused by either calibre or the qt code you're using not
handling
box-sizing:border-box;
correctly.
If I set margin-right and margin-left to 0 in my stylesheet, and set, as you
recommend, my preferred margin in the viewer prefs, the effect of shifting
viewport and broken display is the same.
When I take box-sizing:border-box; out of my stylesheet, the margins on the
left and right are handled correctly [but then I would have to change a lot
of other things that depend on box-sizing].
The "box-sizing:border-box;" code is, as can be easily googled, perfectly
valid and has been for many years.
Calibre 1.48 incidently doesn't have the problem.
> Again, dont set margins, you cannot reliably influence the margins via
> css in the calibre viewer. They are designed to be user controllable via
> a setting in the viewer preferences.
>
>
On Sat, 24 Jun 2017, Kovid Goyal wrote:
The problem is caused by either calibre or the qt code you're using not sizing: border- box;
handling
box-
correctly.
If I set margin-right and margin-left to 0 in my stylesheet, and set, as you
recommend, my preferred margin in the viewer prefs, the effect of shifting
viewport and broken display is the same.
When I take box-sizing: border- box; out of my stylesheet, the margins on the
left and right are handled correctly [but then I would have to change a lot
of other things that depend on box-sizing].
The "box-sizing: border- box;" code is, as can be easily googled, perfectly
valid and has been for many years.
Calibre 1.48 incidently doesn't have the problem.
> Again, dont set margins, you cannot reliably influence the margins via
> css in the calibre viewer. They are designed to be user controllable via
> a setting in the viewer preferences.
>
>
klaus schallhorn