EasyUI Forum

General Category => Bug Report => Topic started by: mzeddd on September 29, 2014, 12:35:21 AM



Title: Dialog issue
Post by: mzeddd on September 29, 2014, 12:35:21 AM
Hi,

I use the following code (more or less) to build dialog on the page.

It works well on 1.3.6 but with 1.4 I see that content loaded via 'refresh' is located behind "toolbar" and "buttons".
In case if I load very long text via 'refresh' scrollbar appears but 'up' and 'down' buttons could not be seen because of "toolbar" and "buttons" panels.

Code:
function showDataToAccept(winTitle,id){
var mytime=new Date().getTime();
$('#importDataViewer').dialog({
title:winTitle,
width:1000,
height:550,
maximizable:true,
resizable:true,
closed:true,
toolbar:[{
text:'Accept',
iconCls:'icon-ok',
handler:function(){
// todo
}
},{
text:'Remove',
iconCls:'icon-cancel',
handler:function(){
// todo
}
}
],
buttons:[{
text:'Cancel',
handler:function(){
$('#importDataViewer').dialog('close');
}
}
]
});
$('#importDataViewer').dialog('refresh','ui/mypage.php&id='+id);
$('#importDataViewer').dialog('open');
}


Title: Re: Dialog issue
Post by: jarry on September 29, 2014, 03:39:20 AM
Please run the attached example 'test.zip'. It works fine.


Title: Re: Dialog issue
Post by: mzeddd on September 29, 2014, 04:16:34 AM
Small example works fine :(

But in my code it works as I described. Will try to play around to find the reason why...

BTW, In web console I see that it calls cc.html 2 times? Do you know why?

http://butwhatif.info/test.html (http://butwhatif.info/test.html)


Title: Re: Dialog issue
Post by: jarry on September 29, 2014, 07:15:22 AM
To avoid calling 'cc.html' multiple times, please try the code below instead.
Code:
	$('#importDataViewer').dialog('open');
$('#importDataViewer').dialog('refresh','cc.html');


Title: Re: Dialog issue
Post by: mzeddd on November 09, 2014, 04:38:28 AM
Initial problem described in 1st post desappeared in 1.4.1 version