Book number appears cut when book is marked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Calibre 2.34 but this have been happening for previous versions, too.
Windows 10 x64
How to reproduce:
when viewing a list of books, in the main view, select a book. The number in the leftmost column changes format to bold and italic. Make sure the book you select has a long number. If you have, let's say, 100 books and you select book number "3", the number won't be cut. Select one with the maximum number of digits you can.
I'm including a capture showing the problem.
What should happen:
the number should appear entirely
What happens:
the number appears cut at the right, because the width of the column was calculated when the number was drawn in normal style, but bold and italic made it wider. I bet the real culprit is italic...
I dont think this can be fixed in calibre code. The layout calculation
is done in Qt (the graphics toolkit calibre uses). Also, it is
apparently dependent on the interface font used -- for instance, I cannot
reproduce it on my windows boxes.
I could try to hack around it by force adding some padding pixels, but
that would not be a good solution, since the number of pixels to be
added likely depends on the font and there is no good way to claculate
that -- and it would punish everyone by using up screen space in order
to fix a minor issue that happens only in some circumstances.
status wontfix