Moving Popup windows? #1252

Closed
opened 2017-07-26 07:46:17 +00:00 by ocornut · 2 comments
ocornut commented 2017-07-26 07:46:17 +00:00 (Migrated from github.com)

I just came to the realization that there's no reason to prevent most popups from being moved.
In BeginPopupEx if we just remove the ImGuiWindowFlags_NoMove flag, 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:
ref

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).

I just came to the realization that there's no reason to prevent most popups from being moved. In `BeginPopupEx` if we just remove the `ImGuiWindowFlags_NoMove` flag, 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: ![ref](https://user-images.githubusercontent.com/8225057/28490663-4137c232-6f12-11e7-8201-747a0fdba63c.PNG) 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).
ocornut commented 2017-08-04 07:43:02 +00:00 (Migrated from github.com)

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.)

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.)
ocornut commented 2017-08-05 11:48:00 +00:00 (Migrated from github.com)

I couldn't see an issue with removing the ImGuiWindowFlags_NoMove flags from popup, so committed it.

I couldn't see an issue with removing the `ImGuiWindowFlags_NoMove` flags from popup, so committed it.
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#1252
No description provided.