Skip to content

Commit 7e3b41c

Browse files
nvgluciferv-ein
authored andcommitted
fix (draw_child_window): Add missing resized state for child_window
1 parent b3f2c38 commit 7e3b41c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/mvContainers.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,11 @@ DearPyGui::draw_child_window(ImDrawList* drawlist, mvAppItem& item, mvChildWindo
10191019
// handle popping themes
10201020
cleanup_local_theming(&item);
10211021

1022+
// update state (for resize handler)
1023+
if (item.state.mvPrevRectSize.x != item.state.rectSize.x || item.state.mvPrevRectSize.y != item.state.rectSize.y) { item.state.mvRectSizeResized = true; }
1024+
else item.state.mvRectSizeResized = false;
1025+
item.state.mvPrevRectSize = item.state.rectSize;
1026+
10221027
if (item.handlerRegistry)
10231028
item.handlerRegistry->checkEvents(&item.state);
10241029

@@ -1777,4 +1782,4 @@ apply_drag_drop_nodraw(mvAppItem* item)
17771782
ImGui::EndDragDropTarget();
17781783
}
17791784
}
1780-
}
1785+
}

0 commit comments

Comments
 (0)