Skip to content

Commit

Permalink
fix: initial position for dpg.window with popup=True (#1975) (#2003)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-ein authored Jan 7, 2023
1 parent 61d6794 commit a9dcb0d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mvContainers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,11 @@ DearPyGui::set_configuration(PyObject* inDict, mvAppItem& itemc, mvWindowAppItem

if (PyObject* item = PyDict_GetItemString(inDict, "label"))
{
itemc.info.dirtyPos = true;
itemc.info.dirty_size = true;
if (item != Py_None)
{
itemc.info.dirtyPos = true;
itemc.info.dirty_size = true;
}
}

if (PyObject* item = PyDict_GetItemString(inDict, "no_open_over_existing_popup")) outConfig.no_open_over_existing_popup = ToBool(item);
Expand Down

0 comments on commit a9dcb0d

Please # to comment.