Merge branch 'IconScaling' of git://github.com/DaveTheGameDev/FlaxEngine into DaveTheGameDev-IconScaling

This commit is contained in:
Wojtek Figat
2021-01-03 21:06:25 +01:00
3 changed files with 14 additions and 4 deletions

View File

@@ -308,11 +308,12 @@ namespace FlaxEditor.Windows
/// <inheritdoc />
public override void OnInit()
{
float tabSize = 48 + Style.Current.IconSizeExtra;
TabsControl = new Tabs
{
AnchorPreset = AnchorPresets.StretchAll,
Offsets = Margin.Zero,
TabsSize = new Vector2(48, 48),
TabsSize = new Vector2(tabSize, tabSize),
Parent = this
};