Arch: Fix Arch_Space text position
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user