The height of menu item is too short when name contains character '\n' #6116

Closed
opened 2023-01-24 06:05:27 +00:00 by imkcy9 · 1 comment
imkcy9 commented 2023-01-24 06:05:27 +00:00 (Migrated from github.com)

Version/Branch of Dear ImGui:

Version: "1.89.2"
Branch: docking

Back-ends: "imgui_impl_glfw.h" "imgui_impl_opengl2.h"
Operating System: APPLE/WINDOWS

My Issue/Question:
Table ContextMenu height of selectable lines is too short when column name contains character '\n'

Screenshots/Video
image

After I modify the source code from imgui_widget.cpp line 7249, The height shows correct.
image

image

So I want to know if the difference label size will cause another BUG or not, Thank you!!!

Version/Branch of Dear ImGui: Version: "1.89.2" Branch: docking Back-ends: "imgui_impl_glfw.h" "imgui_impl_opengl2.h" Operating System: APPLE/WINDOWS My Issue/Question: Table ContextMenu height of selectable lines is too short when column name contains character '\n' Screenshots/Video ![image](https://user-images.githubusercontent.com/10519944/214221624-f96a9be0-f477-4656-b163-7f7743b996c0.png) After I modify the source code from imgui_widget.cpp line 7249, The height shows correct. ![image](https://user-images.githubusercontent.com/10519944/214221978-74f89e84-f26e-4707-a16a-b2027d2e2893.png) ![image](https://user-images.githubusercontent.com/10519944/214222193-08fc35ad-a585-4b9e-9cd8-bc9cd8b367fd.png) So I want to know if the difference label size will cause another BUG or not, Thank you!!!
ocornut commented 2023-01-24 15:12:00 +00:00 (Migrated from github.com)

Hello,
Thanks for reporting.
Your fix is correct and I have pushed it as f6db9e2
Thank you!

Hello, Thanks for reporting. Your fix is correct and I have pushed it as f6db9e2 Thank you!
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#6116
No description provided.