Skip to content

Commit

Permalink
Slight better layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Nov 29, 2023
1 parent 8eea97a commit 837f0e6
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions Editor/CesiumIonAssetsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ void DrawAssetListPanel()

void DrawRefreshButtonAndSearchBar()
{
GUILayout.BeginHorizontal();
EditorGUILayout.BeginHorizontal();

GUILayout.BeginVertical(GUILayout.Width(300.0f));
GUILayout.Space(15.0f);
EditorGUILayout.BeginVertical();
EditorGUILayout.Space(15.0f);
CesiumIonServerUI.Selector();
GUILayout.EndVertical();
EditorGUILayout.EndVertical();

if (GUILayout.Button(
new GUIContent(CesiumEditorStyle.refreshIcon, "Refresh the asset list"),
Expand All @@ -105,15 +105,12 @@ void DrawRefreshButtonAndSearchBar()
CesiumIonSession.Ion().RefreshAssets();
}

GUILayout.FlexibleSpace();

GUILayout.BeginVertical();
GUILayout.Space(15);
EditorGUILayout.BeginVertical();
EditorGUILayout.Space(15);

string searchString = this._searchField.OnToolbarGUI(
this._assetsSearchString,
GUILayout.Height(EditorGUIUtility.singleLineHeight),
GUILayout.Width(150.0f)
GUILayout.Height(EditorGUIUtility.singleLineHeight)
);

if (searchString != null)
Expand All @@ -131,8 +128,8 @@ void DrawRefreshButtonAndSearchBar()
this._assetsTreeView.searchString = this._assetsSearchString;
}

GUILayout.EndVertical();
GUILayout.EndHorizontal();
EditorGUILayout.EndVertical();
EditorGUILayout.EndHorizontal();
}

void DrawAssetTreeView()
Expand Down

0 comments on commit 837f0e6

Please sign in to comment.