Skip to content

Commit 4fa9454

Browse files
committed
fix: compilation error fixed.
1 parent cd25ee9 commit 4fa9454

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Editor/UIToolkit/Controls/TabController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ public void ContentContainerFlexGrow(StyleFloat styleFloat)
8787
m_TabsContainer.contentContainer.style.flexGrow = styleFloat;
8888
}
8989

90+
/// <summary>
91+
/// Container flex grow property.
92+
/// </summary>
93+
public StyleFloat ContainerFlexGrow => m_TabsContainer.contentContainer.style.flexGrow;
94+
9095
/// <summary>
9196
/// Refresh current tab
9297
/// </summary>

Editor/UIToolkit/PreferencesWindow.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/UIToolkit/SettingsWindow/PackageSettingsWindow.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ public abstract class PackageSettingsWindow<TWindow> : EditorWindow where TWindo
2424
/// <summary>
2525
/// Set/Get the flexible growth property of tabs content container
2626
/// </summary>
27+
28+
2729
public StyleFloat ContentFlexGrow
2830
{
29-
get => m_TabsContainer.contentContainer.style.flexGrow;
30-
set => m_TabsContainer.contentContainer.style.flexGrow = value;
31+
get => m_TabController.ContainerFlexGrow;
32+
set => m_TabController.ContentContainerFlexGrow(value);
3133
}
34+
3235

3336
void OnEnable()
3437
{

0 commit comments

Comments
 (0)