Преглед изворни кода

Align Fav button to PlayButton

Stephen Damm пре 6 година
родитељ
комит
92b1485170
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      SongBrowserPlugin/UI/SongBrowserUI.cs

+ 1 - 1
SongBrowserPlugin/UI/SongBrowserUI.cs

@@ -183,7 +183,7 @@ namespace SongBrowserPlugin.UI
                 // Creaate Add to Favorites Button
                 _log.Debug("Creating add to favorites button...");                
                 _addFavoriteButton = UIBuilder.CreateUIButton(otherButtonTransform, otherButtonTemplate);
-                (_addFavoriteButton.transform as RectTransform).anchoredPosition = new Vector2(40f, 5.75f);
+                (_addFavoriteButton.transform as RectTransform).anchoredPosition = new Vector2(40f, (sortButtonTemplate.transform as RectTransform).anchoredPosition.y);
                 (_addFavoriteButton.transform as RectTransform).sizeDelta = new Vector2(10f, 10f);
                 UIBuilder.SetButtonText(ref _addFavoriteButton, _addFavoriteButtonText);
                 UIBuilder.SetButtonTextSize(ref _addFavoriteButton, fontSize);