diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.uxml b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.uxml index 761e5558..f319de88 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.uxml +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.uxml @@ -2,7 +2,7 @@ - + diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterAssetListViewer.uxml b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterAssetListViewer.uxml index 761e5558..d985a4fd 100644 --- a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterAssetListViewer.uxml +++ b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterAssetListViewer.uxml @@ -1,8 +1,8 @@ - + - - + + diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.uxml b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.uxml index 761e5558..d985a4fd 100644 --- a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.uxml +++ b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.uxml @@ -1,8 +1,8 @@ - + - - + + diff --git a/Assets/YooAsset/Editor/UIElements/TableView/TableView.cs b/Assets/YooAsset/Editor/UIElements/TableView/TableView.cs index 99a6787e..4c632e9f 100644 --- a/Assets/YooAsset/Editor/UIElements/TableView/TableView.cs +++ b/Assets/YooAsset/Editor/UIElements/TableView/TableView.cs @@ -90,10 +90,16 @@ namespace YooAsset.Editor public TableView() { - _toolbar = new Toolbar(); - this.Add(_toolbar); + this.style.flexShrink = 1f; + this.style.flexGrow = 1f; + // 定义标题栏 + _toolbar = new Toolbar(); + + // 定义列表视图 _listView = new ListView(); + _listView.style.flexShrink = 1f; + _listView.style.flexGrow = 1f; _listView.makeItem = MakeListViewElement; _listView.bindItem = BindListViewElement; _listView.selectionType = SelectionType.Multiple; @@ -107,6 +113,7 @@ namespace YooAsset.Editor _listView.onSelectionChanged += OnSelectionChanged; #endif + this.Add(_toolbar); this.Add(_listView); }