mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-20 19:45:23 +01:00
Fix #1854422 [[Enhancement] Center the imaga in View image window](https://bugs.launchpad.net/calibre/+bug/1854422)
This commit is contained in:
parent
789a78ce39
commit
30ed603583
1 changed files with 1 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ def __init__(self, parent, current_img, current_url, geom_name='viewer_image_pop
|
|||
l.setScaledContents(True)
|
||||
|
||||
self.scrollarea = sa = QScrollArea()
|
||||
sa.setAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
|
||||
sa.setBackgroundRole(QPalette.Dark)
|
||||
sa.setWidget(l)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue