Fixed issue, where changing DPI scaling on monitor would detach visual elements from toolbar and not reattach/rebuild

This commit is contained in:
Anders Ejlersen 2025-09-21 14:26:04 +02:00
parent a9576ce008
commit 708b99f763
4 changed files with 26 additions and 6 deletions

View file

@ -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;