From ee5b269823bbc7ce8c0b8a28efe1bd223558491b Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Sat, 9 Jul 2016 18:48:05 +0200 Subject: [PATCH] browser: port b769403 --- artiq/browser/experiments.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/browser/experiments.py b/artiq/browser/experiments.py index 95e22d2ea..59870f2b8 100644 --- a/artiq/browser/experiments.py +++ b/artiq/browser/experiments.py @@ -164,6 +164,8 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow): def __init__(self, area, expurl, arguments): QtWidgets.QMdiSubWindow.__init__(self) + qfm = QtGui.QFontMetrics(self.font()) + self.resize(100*qfm.averageCharWidth(), 30*qfm.lineSpacing()) self.setWindowTitle(expurl) self.setWindowIcon(QtWidgets.QApplication.style().standardIcon( QtWidgets.QStyle.SP_FileDialogContentsView))