Fixed random crashing issue

This commit is contained in:
2026-01-02 03:42:43 -05:00
parent 95b441c4cf
commit a8143b6d0c
7 changed files with 9 additions and 6 deletions
+2
View File
@@ -14,6 +14,8 @@ namespace anm2ed::imgui
{
auto viewport = ImGui::GetMainViewport();
auto windowHeight = viewport->Size.y - taskbar.height - documents.height;
if (windowHeight < 1.0f)
windowHeight = 1.0f;
ImGui::SetNextWindowViewport(viewport->ID);
ImGui::SetNextWindowPos(ImVec2(viewport->Pos.x, viewport->Pos.y + taskbar.height + documents.height));