Skip to content

Commit

Permalink
Upstream merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
igor84 committed Jul 4, 2019
1 parent 76a4d4f commit 37c4f4d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Assets/NuGet/Editor/NugetPreferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static class NugetPreferences
/// <summary>
/// The current version of NuGet for Unity.
/// </summary>
public const string NuGetForUnityVersion = "1.1.9";
public const string NuGetForUnityVersion = "1.2.0";

/// <summary>
/// The current position of the scroll bar in the GUI.
Expand Down
8 changes: 4 additions & 4 deletions Assets/NuGet/Editor/NugetWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -798,11 +798,11 @@ private void DrawPackage(NugetPackage package, GUIStyle packageStyle, GUIStyle c
using (new EditorGUILayout.HorizontalScope())
{
const int iconSize = 32;
var padding = EditorStyles.label.padding.vertical;
var padding = 5;
var rect = GUILayoutUtility.GetRect(iconSize, iconSize);
// only use GetRect's Y position. It doesn't correctly set the width, height or X position.
rect.x = padding;
rect.y += padding;
rect.y += 3;
rect.width = iconSize;
rect.height = iconSize;

Expand All @@ -815,8 +815,8 @@ private void DrawPackage(NugetPackage package, GUIStyle packageStyle, GUIStyle c
GUI.DrawTexture(rect, defaultIcon, ScaleMode.StretchToFill);
}

rect = GUILayoutUtility.GetRect(position.width / 2 - (iconSize + leftPadding), 20);
rect.x = iconSize + leftPadding;
rect = GUILayoutUtility.GetRect(position.width / 2 - (iconSize + padding), 20);
rect.x = iconSize + padding;
rect.y += 10;

EditorStyles.label.fontStyle = FontStyle.Bold;
Expand Down
Binary file modified Packager/NuGetForUnity.unitypackage
Binary file not shown.

0 comments on commit 37c4f4d

Please sign in to comment.