diff --git a/LemonUI/Tools/Extensions.cs b/LemonUI/Tools/Extensions.cs index d3f6556..4d9c7e8 100644 --- a/LemonUI/Tools/Extensions.cs +++ b/LemonUI/Tools/Extensions.cs @@ -60,13 +60,13 @@ public static class Extensions /// /// The scaled SizeF. /// A new SizeF with relative values. - public static SizeF ToRelative(this SizeF size) => new SizeF(size.Width.ToXScaled(), size.Height.ToYScaled()); + public static SizeF ToRelative(this SizeF size) => new SizeF(size.Width.ToXRelative(), size.Height.ToYRelative()); /// /// Converts a relative 0-1 position into a scaled one. /// /// The relative SizeF. /// A new SizeF with scaled values. - public static SizeF ToScaled(this SizeF size) => new SizeF(size.Width.ToXRelative(), size.Height.ToYRelative()); + public static SizeF ToScaled(this SizeF size) => new SizeF(size.Width.ToXScaled(), size.Height.ToYScaled()); #endregion }