hasii2011 / pyut

A UML Diagrammer implemented in Python
GNU Affero General Public License v3.0
11 stars 4 forks source link

Fix SD Instance Resize #329

Closed hasii2011 closed 2 years ago

hasii2011 commented 2 years ago

Attempt to resize the text box See this code:

    # Set TextBox
    # This is weird;  Tried my fix does not work
    # RectangleShape.SetSize(self._instanceBox, width, self._instanceBox.GetSize()[1])
    width, height = self._instanceBox.GetSize()
    self._instanceBox.SetSize(width=width, height=height)

This code never executes; why is it here:

    for link in self._oglLinks:
        try:
            # noinspection PyUnresolvedReferences
            link.updatePositions()      # type: ignore
        except (ValueError, Exception) as e:
            self.logger.error(f'Link update position error: {e}')
hasii2011 commented 2 years ago

Ok look at the legacy OglSdInstance; Replace my mooked up version

hasii2011 commented 2 years ago

Fixed on a branch and merged back to the 🤡 master 🤡 branch