From bdcd0c25ace9c741ad35df21c829ebf134084d78 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 15 Jun 2009 18:31:30 +0900 Subject: [PATCH] more padding on osx to deal with scrollbar --- ankiqt/ui/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 2aac1dd1d..5c9cbecf5 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -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)