Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    83
    Vote Rating
    5
    mpost is on a distinguished road

      0  

    Default Collapse panel while masked leaves mask

    Collapse panel while masked leaves mask


    I've got a few panels that are periodically masked with a call to setLoading(true, true) (to mask just the panel body and not the header). This leaves the collapse tool in the header visible (as well as the collapse tool within the splitter for those panels contained in a border layout). If a panel is collapsed after a call to setLoading(), the load mask sticks around in the same location, at the same size. Does anyone have a good fix for this?

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi mpost,
    've got a few panels that are periodically masked with a call to setLoading(true, true) (to mask just the panel body and not the header).
    setLoading() method allow you to show mask on the top of this component. make sure you are applying setLoading() in the appropriate container.
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    83
    Vote Rating
    5
    mpost is on a distinguished road

      0  

    Default


    Here's what I'm doing: http://jsfiddle.net/ms4UC/

    If you click the 'Mask North' button, the north panel's body will be masked. However, the header is intentionally left unmasked so the panel can be collapsed. If the panel is collapsed while masked, the mask remains. It appears to me that I'm masking the appropriate container.

    This seems like a fairly common problem that folks might run into and I was looking for an elegant solution (read: something canned that I could drop it rather than having to develop my own).

  4. #4
    Sencha Premium Member MichaelOstrovsky's Avatar
    Join Date
    May 2008
    Location
    Tel Aviv, Israel
    Posts
    135
    Vote Rating
    6
    MichaelOstrovsky is on a distinguished road

      0  

    Default


    I had a similar problem (actually worse, when 'anchor' layout was used).
    The solution is manually masking the body :
    http://jsfiddle.net/thezver/Dyfp9/

Thread Participants: 2

Tags for this Thread