From bd92b39e43f38cbcd91d93e2b7a8616f7bad5d25 Mon Sep 17 00:00:00 2001 From: Khaya Ludidi Date: Wed, 21 Oct 2020 23:09:01 +0200 Subject: [PATCH] Fix select field text size --- src/Core/Scripts/Extensions/SelectField.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Core/Scripts/Extensions/SelectField.cs b/src/Core/Scripts/Extensions/SelectField.cs index 52435cc..8befa97 100644 --- a/src/Core/Scripts/Extensions/SelectField.cs +++ b/src/Core/Scripts/Extensions/SelectField.cs @@ -132,12 +132,6 @@ public SelectField(string label) // Manual dispose RegisterCallback((evt) => Dispose()); - //m_ListContainer = new VisualElement(); - //m_ListContainer.AddToClassList(listContainerUssClassName); - //m_ListContainer.AddManipulator(new Clickable(OnClickBackground)); - - //hierarchy.Add(m_ListContainer); - } private void M_ListView_onItemsChosen(IEnumerable obj) @@ -258,15 +252,10 @@ void OnClick() void SetToggleState(bool value) { - //m_ListContainer.SetEnabled(value); - if (value) { - //var root = this.GetRootRecursively(); - //root.Add(m_ListContainer); m_ListView = CreateListView(); m_Dialog = new Dialog(panel, m_ListView); - //m_Dialog.WithStyles(this.styleSheets); m_Dialog.onClose += M_Dialog_onClose; } } @@ -294,7 +283,7 @@ ListView CreateListView() listView.itemHeight = defaultItemHeight; listView.AddToClassList(listViewUssClassName); - listView.AddToClassList("h2"); + listView.AddToClassList("h6"); listView.bindingPath = "Items"; listView.focusable = true;