force minimum size on file picker
This commit is contained in:
parent
48046ef86c
commit
82d8728ca1
3
extern/igfd/ImGuiFileDialog.cpp
vendored
3
extern/igfd/ImGuiFileDialog.cpp
vendored
|
@ -3618,6 +3618,9 @@ namespace IGFD
|
||||||
if (beg)
|
if (beg)
|
||||||
{
|
{
|
||||||
ImGui::SetWindowPos(ImVec2((ImGui::GetMainViewport()->Size.x-ImGui::GetWindowWidth())*0.5f,(ImGui::GetMainViewport()->Size.y-ImGui::GetWindowHeight())*0.5f));
|
ImGui::SetWindowPos(ImVec2((ImGui::GetMainViewport()->Size.x-ImGui::GetWindowWidth())*0.5f,(ImGui::GetMainViewport()->Size.y-ImGui::GetWindowHeight())*0.5f));
|
||||||
|
if (ImGui::GetWindowSize().x<vMinSize.x || ImGui::GetWindowSize().y<vMinSize.y) {
|
||||||
|
ImGui::SetWindowSize(vMinSize,ImGuiCond_Always);
|
||||||
|
}
|
||||||
#ifdef IMGUI_HAS_VIEWPORT
|
#ifdef IMGUI_HAS_VIEWPORT
|
||||||
// if decoration is enabled we disable the resizing feature of imgui for avoid crash with SDL2 and GLFW3
|
// if decoration is enabled we disable the resizing feature of imgui for avoid crash with SDL2 and GLFW3
|
||||||
if (ImGui::GetIO().ConfigViewportsNoDecoration)
|
if (ImGui::GetIO().ConfigViewportsNoDecoration)
|
||||||
|
|
Loading…
Reference in a new issue