diff --git a/Assets/SEE/UI/PopupMenu/PopupMenu.cs b/Assets/SEE/UI/PopupMenu/PopupMenu.cs index c96a11a9dc..8976b6f7d8 100644 --- a/Assets/SEE/UI/PopupMenu/PopupMenu.cs +++ b/Assets/SEE/UI/PopupMenu/PopupMenu.cs @@ -48,7 +48,7 @@ public class PopupMenu : PlatformDependentComponent /// /// The height of the menu. /// - private float menuHeight => Menu.sizeDelta.y; + private float MenuHeight => Menu.sizeDelta.y; /// /// Duration of the animation that is used to show or hide the menu. @@ -141,10 +141,10 @@ public void ClearActions() public void MoveTo(Vector2 position) { float scaleFactor = Canvas.MustGetComponent().scaleFactor; - if (position.y < menuHeight * scaleFactor) + if (position.y < MenuHeight * scaleFactor) { // If the menu is too close to the bottom of the screen, expand it upwards instead. - position.y += menuHeight * scaleFactor; + position.y += MenuHeight * scaleFactor; // The mouse should hover over the first menu item already rather than being just outside of it, // so we move the menu down and to the left a bit. position += new Vector2(-5, -5);