From c8a12f81e84524fc844e747bb11606ecf58233d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pinkava?= Date: Mon, 16 Sep 2024 09:06:48 +0200 Subject: [PATCH] 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. --- src/Mod/BIM/bimcommands/BimWelcome.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/BIM/bimcommands/BimWelcome.py b/src/Mod/BIM/bimcommands/BimWelcome.py index a2cb8a6fc2..0306d65998 100644 --- a/src/Mod/BIM/bimcommands/BimWelcome.py +++ b/src/Mod/BIM/bimcommands/BimWelcome.py @@ -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(