-
31 Jan 2013 1:19 AM #1
[4.2.0 beta 2] Portlet doClose doesn't return opacity to 1
[4.2.0 beta 2] Portlet doClose doesn't return opacity to 1
REQUIRED INFORMATION
Ext version tested:- Ext 4.2.0 beta 2
- Any
- Any
- 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.
Steps to reproduce the problem: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 }); } }- Set a portlet's closeAction to "hide"
- Close the portlet clicking its "X" tool
- Call the portlet's show method
- The Portlet appears
- The Portlet does't appear (because of opacity is 0)
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 }); } }
-
1 Feb 2013 1:50 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Thanks for the report! I have opened a bug in our bug tracker.
You found a bug! We've classified it as
EXTJSIV-8497
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote