Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Aug 6, 2023
1 parent c083393 commit 7385058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calibre/gui2/dialogs/data_files_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from contextlib import contextmanager
from datetime import datetime
from functools import partial
from math import ceil
from qt.core import (
QAbstractItemView, QAbstractListModel, QComboBox, QCursor, QDialogButtonBox,
QHBoxLayout, QIcon, QItemSelection, QItemSelectionModel, QLabel, QListView, QMenu,
Expand Down Expand Up @@ -75,7 +76,7 @@ def sizeHint(self, option, index):
if self.doc_size is None:
d = self.doc_for_index(index)
self.doc_size = d.size()
ans.setHeight(max(int(self.doc_size.height() + 2), ans.height()))
ans.setHeight(max(int(ceil(self.doc_size.height()) + 2), ans.height()))
return ans

def paint(self, painter, option, index):
Expand Down

0 comments on commit 7385058

Please sign in to comment.