Fixed issue, where changing DPI scaling on monitor would detach visual elements from toolbar and not reattach/rebuild
This commit is contained in:
parent
a9576ce008
commit
708b99f763
4 changed files with 26 additions and 6 deletions
|
|
@ -23,7 +23,7 @@ namespace Module.NavigationTool.Editor.Toolbar
|
|||
EditorApplication.update -= OnEditorUpdate;
|
||||
EditorApplication.update += OnEditorUpdate;
|
||||
}
|
||||
|
||||
|
||||
private static void OnEditorUpdate()
|
||||
{
|
||||
if (!IS_INITIALIZED)
|
||||
|
|
@ -47,8 +47,8 @@ namespace Module.NavigationTool.Editor.Toolbar
|
|||
DRAWERS[i].Update();
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_2021_1_OR_NEWER
|
||||
|
||||
#if UNITY_2021_1_OR_NEWER
|
||||
private static void OnUpdateElements(VisualElement leftAlign, VisualElement rightAlign)
|
||||
{
|
||||
const float HEIGHT = 22.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue