Skip to content

Commit

Permalink
Merge pull request #38 from manups4e/master
Browse files Browse the repository at this point in the history
Fixed panels overlapping the UpDown sprite.
  • Loading branch information
manups4e authored Jan 10, 2022
2 parents e1ca149 + f428605 commit 25f5b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NativeUI/UIMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ private float CalculateItemHeight()
/// </summary>
private float CalculatePanelsPosition(bool hasDescription)
{
float Height = CalculateWindowHeight() + 40 + _mainMenu.Position.Y;
float Height = CalculateWindowHeight() + 40 + _mainMenu.Position.Y + _upAndDownSprite.Size.Height * 1.5f + 5;
if (hasDescription)
Height += _descriptionRectangle.Size.Height + 5;
return CalculateItemHeight() + Height;
Expand Down

0 comments on commit 25f5b87

Please sign in to comment.