Skip to content

Commit 26df41f

Browse files
committed
Merge pull request #2945 from sept-en/master
[processing] fixed UI bug with invalid button width in Modeler algorithm dialogs
2 parents 944db6d + bf83f4e commit 26df41f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/plugins/processing/modeler/ModelerParametersDialog.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,12 @@ def setupUi(self):
125125
if param.isAdvanced:
126126
self.advancedButton = QPushButton()
127127
self.advancedButton.setText(self.tr('Show advanced parameters'))
128-
self.advancedButton.setMaximumWidth(150)
129128
self.advancedButton.clicked.connect(
130129
self.showAdvancedParametersClicked)
131-
self.verticalLayout.addWidget(self.advancedButton)
130+
advancedButtonHLayout = QHBoxLayout()
131+
advancedButtonHLayout.addWidget(self.advancedButton)
132+
advancedButtonHLayout.addStretch()
133+
self.verticalLayout.addLayout(advancedButtonHLayout)
132134
break
133135
for param in self._alg.parameters:
134136
if param.hidden:

0 commit comments

Comments
 (0)