Fixed layout issues in Unity 6, where height was not set to 22px on parent VisualElement

This commit is contained in:
Anders Ejlersen 2024-07-18 19:27:13 +02:00
parent 70e110496e
commit 2a354e7da5
4 changed files with 29 additions and 4 deletions

View file

@ -72,7 +72,10 @@ namespace Module.NavigationTool.Editor.Toolbar
{
style = {
flexGrow = 1,
flexDirection = FlexDirection.Row
flexDirection = FlexDirection.Row,
#if UNITY_6000_0_OR_NEWER
height = 22f
#endif
}
};
@ -89,7 +92,10 @@ namespace Module.NavigationTool.Editor.Toolbar
{
style = {
flexGrow = 1,
flexDirection = FlexDirection.RowReverse
flexDirection = FlexDirection.RowReverse,
#if UNITY_6000_0_OR_NEWER
height = 22f
#endif
}
};