mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-13 18:50:58 +01:00
Fixed popup resizing (broken 376a6a5af0
)
This commit is contained in:
parent
a906738ba7
commit
6ca4b31bf8
@ -3303,7 +3303,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, const ImVec2& size_on_first_
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((window->Flags & ImGuiWindowFlags_Tooltip) != 0 && (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0)
|
if ((window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0)
|
||||||
{
|
{
|
||||||
// Don't continuously mark settings as dirty, the size of the window doesn't need to be stored.
|
// Don't continuously mark settings as dirty, the size of the window doesn't need to be stored.
|
||||||
window->Size = window->SizeFull = size_auto_fit;
|
window->Size = window->SizeFull = size_auto_fit;
|
||||||
|
Loading…
Reference in New Issue
Block a user