EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: A-K on August 27, 2014, 01:57:56 PM



Title: Animation in combo stopped working in 1.4
Post by: A-K 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 (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.


Title: Re: Animation in combo stopped working in 1.4
Post by: stworthy 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/


Title: Re: Animation in combo stopped working in 1.4
Post by: A-K on August 28, 2014, 01:03:31 PM
Thanks! works great.