summaryrefslogtreecommitdiff
path: root/iup/src/mot/iupmot_filedlg.c
diff options
context:
space:
mode:
Diffstat (limited to 'iup/src/mot/iupmot_filedlg.c')
-rwxr-xr-xiup/src/mot/iupmot_filedlg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/iup/src/mot/iupmot_filedlg.c b/iup/src/mot/iupmot_filedlg.c
index 0be6319..5d8ebe0 100755
--- a/iup/src/mot/iupmot_filedlg.c
+++ b/iup/src/mot/iupmot_filedlg.c
@@ -483,6 +483,7 @@ static int motFileDlgPopup(Ihandle* ih, int x, int y)
XtVaSetValues(filebox,
XmNdialogStyle, style,
XmNautoUnmanage, False,
+ XmNresizePolicy, XmRESIZE_GROW,
NULL);
if (dialogtype == IUP_DIALOGDIR)
@@ -620,6 +621,14 @@ static int motFileDlgPopup(Ihandle* ih, int x, int y)
file_cb(ih, NULL, "INIT");
}
+ if (ih->userwidth && ih->userheight)
+ {
+ XtVaSetValues(dialog,
+ XmNwidth, (XtArgVal)(ih->userwidth),
+ XmNheight, (XtArgVal)(ih->userheight),
+ NULL);
+ }
+
if (style == XmDIALOG_MODELESS)
XtPopup(dialog, XtGrabExclusive);