EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: hjzhbb7758 on July 31, 2014, 07:13:33 AM



Title: dialog 1.4
Post by: hjzhbb7758 on July 31, 2014, 07:13:33 AM
why !  when i used easyui 1.4 .


Title: Re: dialog 1.4
Post by: wade.zhu on July 31, 2014, 10:51:33 PM
i have the same problem when dialog is closed=true.
when dialog height property is undefined, v1.3.6 will be auto size the height when dialog shown
see the code bellow, if closed:true the dialog cannot auto height when it is shown
Code:
<div style="margin:20px 0;">
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#dlg').dialog('open')">Open</a>
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#dlg').dialog('close')">Close</a>
</div>
<div id="dlg" class="easyui-dialog" title="Basic Dialog" data-options="iconCls:'icon-save', closed:true" style="width:400px;padding:10px">
The dialog content.<br>
The dialog content.<br>
The dialog content.<br>
The dialog content.<br>
The dialog content.<br>
</div>


Title: Re: dialog 1.4
Post by: hjzhbb7758 on August 01, 2014, 12:11:19 AM
I think this issue should be considered bug


Title: Re: dialog 1.4
Post by: jarry on August 01, 2014, 02:20:38 AM
Please try to call 'resize' method after open a closed dialog, or download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4-patch.zip


Title: Re: dialog 1.4
Post by: wade.zhu on August 03, 2014, 06:16:31 PM
Still can not display properly if dialog has buttons.
Code:
<body>
<h2>Basic Dialog</h2>
<p>Click below button to open or close dialog.</p>
<div style="margin:20px 0;">
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#dlg').dialog('open')">Open</a>
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#dlg').dialog('close')">Close</a>
</div>
<div id="dlg" class="easyui-dialog" title="Basic Dialog" data-options="iconCls:'icon-save',buttons: [{text:'OK', iconCls:'icon-save', handler:function(){}}]" style="width:400px;padding:10px">
The dialog content.<br>
The dialog content.<br>
The dialog content.<br>
The dialog content.<br>
The dialog content.<br>
</div>
</body>


Title: Re: dialog 1.4
Post by: jarry on August 03, 2014, 07:05:27 PM
Please see this example http://jsfiddle.net/YeES8/. It works fine.
If your issue continues, please confirm if you have downloaded the EasyUI from http://www.jeasyui.com/download/index.php successfully or downloaded the newest patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4-patch.zip


Title: Re: dialog 1.4
Post by: wade.zhu on August 03, 2014, 08:10:50 PM
i re-download the EasyUI, it works fine now, thanks :)