From a1ce9e797c89d268b84f9f34389c2101c16716dc Mon Sep 17 00:00:00 2001 From: Rainer Koschke Date: Sat, 11 Nov 2023 21:52:14 -0500 Subject: [PATCH] #632 Name of properties shall start with a capital letter. --- Assets/SEE/UI/PopupMenu/PopupMenu.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);