Results 1 to 2 of 2

Thread: [4.2.0 beta 2] Portlet doClose doesn't return opacity to 1

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8497 in 4.2.0.489.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,016
    Vote Rating
    125
      0  

    Default [4.2.0 beta 2] Portlet doClose doesn't return opacity to 1

    REQUIRED INFORMATION

    Ext version tested:

    • Ext 4.2.0 beta 2

    Browser versions tested against:
    • Any

    DOCTYPE tested against:
    • Any

    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 Portlet appears

    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
            });
        }
    }
    Object.NET
    Frameworks and Tools for .NET Developers
    --------------------------------------------------
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter
    --------------------------------------------------

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •