From 40f9096051104397b2ae6813ea90a0d3a0a006b0 Mon Sep 17 00:00:00 2001 From: Jerry Padgett Date: Fri, 18 Jun 2021 09:15:53 -0400 Subject: [PATCH] fix content height on IOS mobile devices. (#4472) --- library/dialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/dialog.js b/library/dialog.js index b375a9499..1e9532dcc 100644 --- a/library/dialog.js +++ b/library/dialog.js @@ -428,7 +428,7 @@ function dlgopen(url, winname, width, height, forceNewWindow, title, opts) { async: true, frameContent: "", // for iframe embedded content html: "", // content for alerts, comfirm etc ajax - allowDrag: true, + allowDrag: false, allowResize: true, sizeHeight: 'auto', // 'full' will use as much height as allowed // use is onClosed: fnName ... args not supported however, onClosed: 'reload' is auto defined and requires no function to be created. @@ -522,7 +522,7 @@ function dlgopen(url, winname, width, height, forceNewWindow, title, opts) { '×').replace('%title%', mTitle); var frameHtml = - ('').replace('%winname%', winname).replace('%url%', fullURL ? 'src=' + fullURL : ''); + ('').replace('%winname%', winname).replace('%url%', fullURL ? 'src=' + fullURL : ''); var contentStyles = ('style="height:%initHeight%; max-height: 94vh"').replace('%initHeight%', opts.sizeHeight !== 'full' ? mHeight : '85vh'); @@ -533,7 +533,7 @@ function dlgopen(url, winname, width, height, forceNewWindow, title, opts) { '' + '').replace('%id%', winname).replace('%sizeStyle%', msSize ? msSize : '').replace('%dialogId%', opts.dialogId ? ('id=' + opts.dialogId + '"') : '').replace('%sizeClass%', mSize ? mSize : '').replace('%head%', mTitle !== '' ? headerhtml : '').replace('%altclose%', mTitle === '' ? altClose : '').replace('%drag-action%', (opts.allowDrag) ? 'drag-action' : '').replace('%resize-action%', (opts.allowResize) ? 'resize-action' : '').replace('%wait%', '').replace('%contentStyles%', contentStyles).replace('%body%', opts.type === 'iframe' ? frameHtml : ''); + '').replace('%id%', winname).replace('%sizeStyle%', msSize ? msSize : '').replace('%dialogId%', opts.dialogId ? ('id=' + opts.dialogId + '"') : '').replace('%sizeClass%', mSize ? mSize : '').replace('%head%', mTitle !== '' ? headerhtml : '').replace('%altclose%', mTitle === '' ? altClose : '').replace('%drag-action%', (opts.allowDrag) ? 'drag-action' : '').replace('%resize-action%', (opts.allowResize) ? 'resize-action' : '').replace('%wait%', '').replace('%contentStyles%', contentStyles).replace('%body%', opts.type === 'iframe' ? frameHtml : ''); // Write modal template. dlgContainer = where.jQuery(mhtml); -- 2.11.4.GIT