Skip to content

Commit

Permalink
[IMP] : in embedded mode, now this is the third argument vMinSize who…
Browse files Browse the repository at this point in the history
… size the frame. before it was the fourth vMaxSize (#191)
  • Loading branch information
aiekick committed Jul 22, 2024
1 parent 9ab2b33 commit 2741488
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DemoDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,8 @@ void DemoDialog::display(const int32_t& vDisplayWidth, const int32_t& vDisplayHe
ImGuiFileDialogFlags_DisableCreateDirectoryButton | // no directory creation button
ImGuiFileDialogFlags_ReadOnlyFileNameField; // file name filed is read only
fileDialogEmbedded3.OpenDialog("embedded", "Select File", ".*", config);
// to note, when embedded only, the vMinSize do nothing, only the vMaxSize can size the dialog frame
if (fileDialogEmbedded3.Display("embedded", ImGuiWindowFlags_NoCollapse, ImVec2(0, 0), ImVec2(0, 350))) {
// to note, when embedded only, the vMinSize is the size of the frame, vMaxSize do nothing
if (fileDialogEmbedded3.Display("embedded", ImGuiWindowFlags_NoCollapse, ImVec2(0, 350))) {
if (fileDialogEmbedded3.IsOk()) {
filePathName = fileDialogEmbedded3.GetFilePathName(resultMode);
filePath = fileDialogEmbedded3.GetCurrentPath();
Expand Down
2 changes: 1 addition & 1 deletion ImGuiFileDialog

0 comments on commit 2741488

Please sign in to comment.