View Single Post
Old 06-10-2025, 05:52 AM   #11
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: 79,856
Karma: 146918083
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 ElMiko View Post
Thanks, JSWolf...

I gave this a shot, but it also smooshes the image horizontally in calibre, similar to the
Code:
height: 100%;
width: auto;
styling. And if the window is wider that it is tall, it isn't limited vertically in either Sigil's preview window or PageEdit.

Again, part of the issue here is that it seems that the simple
Code:
height: 100%;
width: auto;
SHOULD work in a certain straightforward way (i.e. fits any given screen up to 100% of the screen's height and automatically adjusts the width proportionately), but it doesn't, and I don't understand why not. And the fact that its idiosyncratic behavior is doubly idiosyncratic depending on whether it's being viewed in Sigil, PageEdit, or Calibre only serves to scramble my brains even further.
When using the code I posted, it does not look correct in the preview of the the editor (both calibre or Sigil). It's an issue with QT not respecting %. But it does work correctly in the calibre viewer.

This is as small as the viewer will go while showing the full image. Click image for larger version

Name:	fullscreen.jpg
Views:	32
Size:	11.2 KB
ID:	216120

Last edited by JSWolf; 06-10-2025 at 06:04 AM.
JSWolf is offline   Reply With Quote