Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJS-8497
in
4.2.0.489.
-
[4.2.0 beta 2] Portlet doClose doesn't return opacity to 1
REQUIRED INFORMATION
Ext version tested:
Browser versions tested against:
DOCTYPE tested against:
Description:
- A Portlet's doClose method doesn't return opacity to 1. It is actual if closeAction of a Portlet is "hide". A show call doesn't cause a Portlet to be actually appeared , because its opacity is 0.
Code:
doClose: function() {
if (!this.closing) {
this.closing = true;
this.el.animate({
opacity: 0,
callback: function(){
this.fireEvent('close', this);
this[this.closeAction]();
},
scope: this
});
}
}
Steps to reproduce the problem:
- Set a portlet's closeAction to "hide"
- Close the portlet clicking its "X" tool
- Call the portlet's show method
The result that was expected:
The result that occurs instead:
- The Portlet does't appear (because of opacity is 0)
Test Case:
I will provide if you really need a sample.
HELPFUL INFORMATION
Possible fix:
- Return opacity back to 1 in the animation callback if closeAction is "hide".
Code:
doClose : function () {
if (!this.closing) {
this.closing = true;
this.el.animate({
opacity : 0,
callback : function(){
this.fireEvent('close', this);
this[this.closeAction]();
if(this.closeAction == "hide") {
this.el.setOpacity(1, false);
}
},
scope : this
});
}
}
-
Thanks for the report! I have opened a bug in our bug tracker.