mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-14 19:04:44 +00:00
The height of menu item is too short when name contains character '\n' #6116
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#6116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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

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

So I want to know if the difference label size will cause another BUG or not, Thank you!!!
Hello,
Thanks for reporting.
Your fix is correct and I have pushed it as
f6db9e2Thank you!