Skip to content

Commit 28c046d

Browse files
committed
Fixed #88
1 parent 5127b0c commit 28c046d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Plugins/SimpleFileBrowser/Scripts/UISkin.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,13 @@ public void ApplyTo( Dropdown dropdown )
575575
ApplyTo( dropdown.captionText, m_dropdownTextColor );
576576
ApplyTo( dropdown.itemText, m_dropdownTextColor );
577577

578-
Transform dropdownItem = dropdown.itemText.transform.parent;
578+
RectTransform dropdownItem = (RectTransform) dropdown.itemText.transform.parent;
579+
dropdownItem.sizeDelta = new Vector2( dropdownItem.sizeDelta.x, m_rowHeight );
579580
dropdownItem.Find( "Item Background" ).GetComponent<Image>().color = m_dropdownColor;
580581

582+
RectTransform dropdownScrollContent = (RectTransform) dropdownItem.parent;
583+
dropdownScrollContent.sizeDelta = new Vector2( dropdownScrollContent.sizeDelta.x, dropdownItem.sizeDelta.y + 2f );
584+
581585
Image dropdownCheckmark = dropdownItem.Find( "Item Checkmark" ).GetComponent<Image>();
582586
dropdownCheckmark.color = m_dropdownCheckmarkColor;
583587
dropdownCheckmark.sprite = m_dropdownCheckmark;

0 commit comments

Comments
 (0)