Skip to content

Commit

Permalink
Fix select field text size
Browse files Browse the repository at this point in the history
  • Loading branch information
LudiKha committed Oct 21, 2020
1 parent cd40f06 commit bd92b39
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/Core/Scripts/Extensions/SelectField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,6 @@ public SelectField(string label)
// Manual dispose
RegisterCallback<DetachFromPanelEvent>((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<object> obj)
Expand Down Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -294,7 +283,7 @@ ListView CreateListView()
listView.itemHeight = defaultItemHeight;

listView.AddToClassList(listViewUssClassName);
listView.AddToClassList("h2");
listView.AddToClassList("h6");
listView.bindingPath = "Items";
listView.focusable = true;

Expand Down

0 comments on commit bd92b39

Please sign in to comment.