mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
more padding on osx to deal with scrollbar
This commit is contained in:
parent
1ed03b3f0b
commit
bdcd0c25ac
1 changed files with 5 additions and 1 deletions
|
@ -992,7 +992,11 @@ your deck."""))
|
|||
class PaddedScroll(QScrollArea):
|
||||
def sizeHint(self):
|
||||
hint = QScrollArea.sizeHint(self)
|
||||
return QSize(max(hint.width(), 450), hint.height())
|
||||
if sys.platform.startswith("darwin"):
|
||||
m = 500
|
||||
else:
|
||||
m = 450
|
||||
return QSize(max(hint.width(), m), hint.height())
|
||||
self.decksScrollArea = PaddedScroll()
|
||||
self.decksScrollArea.setFrameStyle(QFrame.NoFrame)
|
||||
self.decksScrollArea.setWidgetResizable(True)
|
||||
|
|
Loading…
Reference in a new issue