BIM: adjust size of wellcome window to fit content

The actual optimal size of the window depends on many details, like UI style, system fonts,
OS etc ... so lets auto-resize the window to fit the content before display.
This commit is contained in:
Jiří Pinkava
2024-09-16 09:06:48 +02:00
committed by Yorik van Havre
parent b6599c5315
commit c8a12f81e8

View File

@@ -53,6 +53,8 @@ class BIM_Welcome:
self.form.label_4.linkActivated.connect(self.handleLink)
self.form.label_7.linkActivated.connect(self.handleLink)
self.form.adjustSize()
# center the dialog over FreeCAD window
mw = FreeCADGui.getMainWindow()
self.form.move(