diff --git a/piker/ui/_forms.py b/piker/ui/_forms.py index c63bccc0..c784c3ca 100644 --- a/piker/ui/_forms.py +++ b/piker/ui/_forms.py @@ -155,6 +155,10 @@ class FontScaledDelegate(QStyledItemDelegate): class FieldsForm(QWidget): + godwidget: 'GodWidget' # noqa + vbox: QVBoxLayout + form: QFormLayout + def __init__( self, @@ -172,41 +176,46 @@ class FieldsForm(QWidget): QSizePolicy.Expanding, ) + # XXX: not sure why we have to create this here exactly + # (instead of in the pane creation routine) but it's + # here and is managed by downstream layout routines. + # best guess is that you have to create layouts in order + # of hierarchy in order for things to display correctly? + # TODO: we may want to hand this *down* from some "pane manager" + # thing eventually? self.vbox = QVBoxLayout(self) - self.vbox.setAlignment(Qt.AlignTop) - self.vbox.setContentsMargins(0, 4, 4, 4) + self.vbox.setAlignment(Qt.AlignVCenter) + self.vbox.setContentsMargins(0, 4, 3, 6) self.vbox.setSpacing(0) # split layout for the (