Skip to content

Commit

Permalink
Gum parents default to 0 width/height if attached to a non iscalable.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Dec 29, 2023
1 parent f3027db commit b337244
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ private void UpdateGumObject()
GumParent.Width = frbObjectAsScalable.ScaleX * 2;
GumParent.Height = frbObjectAsScalable.ScaleY * 2;
}
else
{
// This allows the user to position things according to the top-left of the Gum canvas and
// have that align with the center of the entity. Otherwise, positioning seems arbitrary.
GumParent.Width = 0;
GumParent.Height = 0;
}
if(frbObjectAsIVisible != null)
{
GumParent.Visible = frbObjectAsIVisible.AbsoluteVisible;
Expand Down

0 comments on commit b337244

Please sign in to comment.