EasyUI Forum
May 17, 2024, 02:23:45 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: Animation in combo stopped working in 1.4  (Read 7262 times)
A-K
Full Member
***
Posts: 122


View Profile WWW
« on: August 27, 2014, 01:57:56 PM »

Hey, in a previous thread I opened (http://www.jeasyui.com/forum/index.php?topic=3544.msg8099#msg8099) which asked how can you do animation in combo and datetimebox everything worked great.
But since the new version 1.4 the slide effect stopped working properly, and looks broken. After I looked forward in to the problem I found the code that makes the problem but I have no fix for it,
the code is in the rtl extension "easyui-rtl.js". The code:
Code:
if (panel.panel('options').closed){
panel.panel('open').panel('resize', {
width: (opts.panelWidth ? opts.panelWidth : combo._outerWidth()),
height: opts.panelHeight
});
opts.onShowPanel.call(this);
}

was changed from :
Code:
if (panel.panel('options').closed){
panel.panel('open');
opts.onShowPanel.call(this);
}

But if I return it to the previous code than the slide works just fine but the width and height are too small.
Is there any other way to make the slide effect work as before?

Thanks.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 28, 2014, 12:35:31 AM »

Please try the code below:
Code:
if (panel.panel('options').closed){
    panel.panel('panel').show();
    panel.panel('resize', {
        width: (opts.panelWidth ? opts.panelWidth : combo._outerWidth()),
        height: opts.panelHeight
    });
    panel.panel('panel').hide();
    panel.panel('open');
    opts.onShowPanel.call(this);
}
For more information, please refer to this example http://jsfiddle.net/guLrnz6t/
Logged
A-K
Full Member
***
Posts: 122


View Profile WWW
« Reply #2 on: August 28, 2014, 01:03:31 PM »

Thanks! works great.
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!