Arch: Fix Arch_Space text position

This commit is contained in:
Roy-043
2022-12-01 09:31:30 +01:00
committed by Uwe
parent 34f41572b2
commit baa485d573

View File

@@ -670,11 +670,13 @@ class _ViewProviderSpace(ArchComponent.ViewProviderComponent):
if hasattr(vobj,"FirstLine"):
scale = vobj.FirstLine.Value/vobj.FontSize.Value
self.header.scaleFactor.setValue([scale,scale,scale])
self.onChanged(vobj, "TextPosition")
elif (prop == "FirstLine"):
if hasattr(self,"header") and hasattr(vobj,"FontSize") and hasattr(vobj,"FirstLine"):
scale = vobj.FirstLine.Value/vobj.FontSize.Value
self.header.scaleFactor.setValue([scale,scale,scale])
self.onChanged(vobj, "TextPosition")
elif prop == "TextColor":
if hasattr(self,"color") and hasattr(vobj,"TextColor"):