mirror of
https://github.com/ocornut/imgui.git
synced 2026-10-25 10:29:23 +00:00
Moving Popup windows? #1252
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 assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#1252
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 just came to the realization that there's no reason to prevent most popups from being moved.
In
BeginPopupExif we just remove theImGuiWindowFlags_NoMoveflag, popups can be moved.Does anyone sees in their codebase, a side-effect, potential breakage or reason to not just remove this flag?
Thinking of cases such as:

The popup auto position but no reason to lock its position.
When the popup is filled with menu items and auto-sized there's typically little room to grab and move them, but I don't think it is something that people would really care about. Also, because child menu are positioned by their parent, you still cannot move a child menu (which also is to be expected).
This is being worked on in the color-picker branch, also see #346 discussion. It should be merged in Master within the week.
(EDIT Please post your color picker questions in the color picker thread. Also please use github attachment system for pictures and not imgur.)
I couldn't see an issue with removing the
ImGuiWindowFlags_NoMoveflags from popup, so committed it.