Apply an anchor offset for Anchor.TopRight too.
This commit is contained in:
@@ -185,7 +185,7 @@ public abstract class Container : IElement, IParentableElement, IUpdatableElemen
|
||||
Position = new Vector2(parentPosition.X + topCenterX, topCenterY) - absoluteOffset;
|
||||
break;
|
||||
case Anchor.TopRight:
|
||||
Position = new Vector2(parentPosition.X + parentRect.Width, parentPosition.Y);
|
||||
Position = new Vector2(parentPosition.X + parentRect.Width, parentPosition.Y) - absoluteOffset;
|
||||
break;
|
||||
|
||||
case Anchor.Fill:
|
||||
|
||||
Reference in New Issue
Block a user