mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-14 19:04:44 +00:00
Wrapped text becomes a single line when the expected item rectangle is not in the viewport #706
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#706
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?
I'm making a resource manager displaying item groups consist of a thumbnail and a name respectively, and I'm wrapping the name text like the Windows Explorer does because I don't want it to expand the width of the group. However this strange behavior happens when I moves the manager window around, and disturbs the layout.
I've found that if TextWrapPos == -1.f is used to determine whether wrapping is enabled, but I can't see any difference changing it, so I suspect there might be some other positional / clipping calculations involed.
I hope this could be fixed or an corrected code replacing the old in the demo. Thank you.
Good catch!
Fixed!