Skip to content

Commit 022dcd6

Browse files
Merge pull request #12 from StansAssets/fix/tabs-container-flex-grow
fix: flexible growth of tabs content container
2 parents b94d2aa + c455f8e commit 022dcd6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Editor/UIToolkit/SettingsWindow/PackageSettingsWindow.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ public abstract class PackageSettingsWindow<TWindow> : EditorWindow where TWindo
2525

2626
readonly string m_WindowUIFilesRootPath = $"{PluginsDevKitPackage.UIToolkitPath}/SettingsWindow";
2727

28+
/// <summary>
29+
/// Set/Get the flexible growth property of tabs content container
30+
/// </summary>
31+
public StyleFloat ContentFlexGrow
32+
{
33+
get => m_TabsContainer.contentContainer.style.flexGrow;
34+
set => m_TabsContainer.contentContainer.style.flexGrow = value;
35+
}
36+
2837
void OnEnable()
2938
{
3039
// This is a workaround due to a very weird bug.

0 commit comments

Comments
 (0)