Bad Y value on CalcWindowMinSize() #7106

Closed
opened 2023-12-10 10:16:19 +00:00 by snowyyd · 0 comments
snowyyd commented 2023-12-10 10:16:19 +00:00 (Migrated from github.com)

Version/Branch of Dear ImGui:

Version: 1.90
Branch: master

Back-end/Renderer/Compiler/OS

N/A

My Issue/Question:

The CalcWindowMinSize() function is parsing a bad Y value (actually getting the X value).
See: ocornut/imgui@69f524ba95/imgui.cpp (L5677C7-L5677C7)

It should be:

size_min.y = ((window->Flags & ImGuiWindowFlags_AlwaysAutoResize) == 0) ? g.Style.WindowMinSize.y : 4.0f;

Screenshots/Video

N/A

Standalone, minimal, complete and verifiable example:

N/A

**Version/Branch of Dear ImGui:** Version: 1.90 Branch: master **Back-end/Renderer/Compiler/OS** N/A **My Issue/Question:** The `CalcWindowMinSize()` function is parsing a bad `Y` value (actually getting the `X` value). See: https://github.com/ocornut/imgui/blob/69f524ba959c694a304dd71765d84e1422ce1eb2/imgui.cpp#L5677C7-L5677C7 It should be: ```cpp size_min.y = ((window->Flags & ImGuiWindowFlags_AlwaysAutoResize) == 0) ? g.Style.WindowMinSize.y : 4.0f; ``` **Screenshots/Video** N/A **Standalone, minimal, complete and verifiable example:** N/A
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#7106
No description provided.