mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 19:03:30 +00:00
Providing (-1, -1) for size_min or size_max alone in SetNextWindowSizeConstraints has no effect. #3270
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#3270
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?
From the documentation below, the obvious thing to do is to provide
(-1, -1)forsize_maxif one wants to providesize_minalone. But this results insize_minnot being honored.ocornut/imgui@3f26a07ee1/imgui.h (L307)The code below makes it clear why it behaves this way and the fix looks simple.
ocornut/imgui@3f26a07ee1/imgui.cpp (L4946-L4947)Of course, it's always possible to provide
FLT_MAX/INT_MAX. But that took a long while for me to figure out.If this is the intended behavior, I feel that the documentation could be made clearer.
Hello,
It seems like this has already been reported and there's a pull request here: #3186
Somehow missed that, my bad.
No worries! I'll close this and will aim to look at and merge #3186 soonish.