diff options
| author | Adrien Tétar | 2015-10-29 22:06:38 +0100 |
|---|---|---|
| committer | Adrien Tétar | 2015-10-29 22:06:38 +0100 |
| commit | 0a5eaae9e704e478bfb521d2f1f8e441a3fc5449 (patch) | |
| tree | 538c8628f6cf9b79a3ea09c2862331d19b4e5d0f /Lib/defconQt/fontView.py | |
| parent | 1a889dc612c036763d80815a00d4b9a8fc73ba78 (diff) | |
| download | trufont-0a5eaae9e704e478bfb521d2f1f8e441a3fc5449.tar.bz2 | |
fontView: use available geometry
Diffstat (limited to 'Lib/defconQt/fontView.py')
| -rw-r--r-- | Lib/defconQt/fontView.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/defconQt/fontView.py b/Lib/defconQt/fontView.py index 523719f..c7fdccf 100644 --- a/Lib/defconQt/fontView.py +++ b/Lib/defconQt/fontView.py @@ -251,8 +251,7 @@ class InfoPanel(QWidget): def showEvent(self, event): super().showEvent(event) - # TODO: does not put window on secondary screen if applicable - screenRect = QApplication.desktop().screenGeometry() + screenRect = QApplication.desktop().availableGeometry(self) widgetRect = self.frameGeometry() x = screenRect.width() - (widgetRect.width() + 20) y = screenRect.center().y() - widgetRect.height() / 2 |
