11-25-2020, 07:59 AM | #1 |
Member
Posts: 13
Karma: 280
Join Date: Aug 2017
Device: touch lux
|
Cover not fitting in viewer pane
Hi,
A minor bug (unless it's a feature ?) : In calibre 4, when a cover generated by calibre from an image was proportional (preserveAspectRatio="xMidYMid meet"), it was resized to always fit in the viewer pane. With calibre 5, it is still resized for width, but not for height, if its heigth is bigger than the pane, we have to scroll down to see it. This behavior is different from ebook-viewer where cover is always resized. Thank you. |
11-25-2020, 09:53 AM | #2 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
make sure you are in paged mode.
|
11-25-2020, 12:24 PM | #3 |
Member
Posts: 13
Karma: 280
Join Date: Aug 2017
Device: touch lux
|
Page mode is for ebook-viewer, isn't it ? I'm speaking about the pane view of the editor (ebook-edit), that's why it is not very important. The former versions of calibre (4 ans less) had a different behavior.
Anyway, it was just a remark, thank you for the attention. |
11-25-2020, 08:47 PM | #4 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah you mean the preview in the editor. That's a change in Chromium, with how 100% height is interpreted. If you use 100vh instead it should work, though you might need to also add overflow: hidden to body to avoid scrollbars.
|
11-26-2020, 06:29 AM | #5 |
Member
Posts: 13
Karma: 280
Join Date: Aug 2017
Device: touch lux
|
Thank you, Kovid. Very clear.
|
11-26-2020, 08:53 AM | #6 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But you have to be careful. 100vh may not work with what you are using to read the eBook. So while 100vh will work in the preview, that may be the only play it works. I just leave things at 100% because I know it will work when I go to read the eBook.
|
11-26-2020, 10:07 AM | #7 |
Member
Posts: 13
Karma: 280
Join Date: Aug 2017
Device: touch lux
|
Thank you for the point, Jon. It was what I wanted to do, preview has not to be 100% accurate in editor, it just gives a good idea of what we'll see in real viewer or eReader. But the Kovid's explanation was useful to understand what has changed since calibre 4.
I was more curious about the rem unit for epub3, it seems a good feature to explore. |
12-02-2020, 08:18 PM | #8 | |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre viewer only shows cover page | TeenA | Viewer | 9 | 07-06-2022 11:33 AM |
Calibre:Book Cover size in Book Details side pane & Edit Metadata Individually window | Volfer | Calibre | 3 | 01-05-2016 01:56 PM |
Ebook Viewer - Double Pane | sathishkumar_in | Calibre | 2 | 01-04-2015 12:41 PM |
Font Name not Displaying Correctly in Viewer Pane When Adding Fonts | ssholloway | Calibre | 0 | 05-27-2014 09:19 PM |
Can I Remove The Cover From The Right Pane? | flutterbye | Library Management | 9 | 06-10-2011 09:54 PM |