Made the variables area scrollable.

This commit is contained in:
Jeremy Mack Wright 2017-09-01 16:33:32 -04:00
parent 44e8533f26
commit 9cb1e58f3f

View File

@ -97,9 +97,6 @@ def populateParameterEditor(parameters):
mw = FreeCADGui.getMainWindow()
# Tracks whether or not we have already added the variables editor
isPresent = False
# If the widget is open, we need to close it
dockWidgets = mw.findChildren(QtGui.QDockWidget)
for widget in dockWidgets:
@ -133,6 +130,4 @@ def populateParameterEditor(parameters):
scrollArea.setStyleSheet("QLabel { color : black; }");
scrollArea.setWidget(newWidget)
widget.setWidget(scrollArea)
isPresent = True
widget.setWidget(scrollArea)