EasyUI Forum
April 28, 2024, 12:32:04 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: dialog 1.4  (Read 9815 times)
hjzhbb7758
Jr. Member
**
Posts: 84


View Profile Email
« on: July 31, 2014, 07:13:33 AM »

why !  when i used easyui 1.4 .
Logged
wade.zhu
Newbie
*
Posts: 27


View Profile
« Reply #1 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>
Logged
hjzhbb7758
Jr. Member
**
Posts: 84


View Profile Email
« Reply #2 on: August 01, 2014, 12:11:19 AM »

I think this issue should be considered bug
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #3 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
Logged
wade.zhu
Newbie
*
Posts: 27


View Profile
« Reply #4 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>
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #5 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
Logged
wade.zhu
Newbie
*
Posts: 27


View Profile
« Reply #6 on: August 03, 2014, 08:10:50 PM »

i re-download the EasyUI, it works fine now, thanks Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!