Skip to content

Commit

Permalink
#632 Name of properties shall start with a capital letter.
Browse files Browse the repository at this point in the history
  • Loading branch information
axivionsee committed Nov 12, 2023
1 parent 342378d commit a1ce9e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/SEE/UI/PopupMenu/PopupMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class PopupMenu : PlatformDependentComponent
/// <summary>
/// The height of the menu.
/// </summary>
private float menuHeight => Menu.sizeDelta.y;
private float MenuHeight => Menu.sizeDelta.y;

/// <summary>
/// Duration of the animation that is used to show or hide the menu.
Expand Down Expand Up @@ -141,10 +141,10 @@ public void ClearActions()
public void MoveTo(Vector2 position)
{
float scaleFactor = Canvas.MustGetComponent<Canvas>().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);
Expand Down

0 comments on commit a1ce9e7

Please sign in to comment.