1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    16
    Vote Rating
    0
    jimswers is on a distinguished road

      0  

    Default Answered: two loadmasks conflict

    Answered: two loadmasks conflict


    Hi,

    i have two load masks for panels:

    Code:
    window.pieChartMask = new Ext.LoadMask(Ext.get('piechartCmp'), {msg:'Please wait...'});
    window.lineChartMask = new Ext.LoadMask(Ext.get('chartCmp'),{msg:'Please wait...'});
    when i try to do
    Code:
    pieChartMask.show();
    lineChartMask.show();
    pieChartMask disappears.
    Why is so?
    May be additional parametr missing?
    Second two lines I call in listeners so I need to use "window." before object.

  2. In 4.0.7, the load masks are shared. In what will be 4.1.0 beta 1 this has been changed.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    898
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    In 4.0.7, the load masks are shared. In what will be 4.1.0 beta 1 this has been changed.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    16
    Vote Rating
    0
    jimswers is on a distinguished road

      0  

    Default


    That's good.
    I hope mask will follow the window too, because if you minimize window during loading mask remains on screen.

  5. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    898
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by jimswers View Post
    That's good.
    I hope mask will follow the window too, because if you minimize window during loading mask remains on screen.
    It sure does
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  6. #5
    Sencha User
    Join Date
    Dec 2011
    Posts
    16
    Vote Rating
    0
    jimswers is on a distinguished road

      0  

    Default


    That would be nice if we have something like:

    Code:
    win = Ext.getCmp('win-id');
    win.enableMask();
    now I use

    Code:
    win.disable();

  7. #6
    Sencha Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,695
    Vote Rating
    114
    Answers
    130
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    Code:
    window.getEl().mask();
    should do the trick (untested). You can also try getBody() to only mask the content.
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  8. #7
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    898
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by tobiu View Post
    Code:
    window.getEl().mask();
    should do the trick (untested). You can also try getBody() to only mask the content.
    There is no getBody method on the Ext.window.Window. You can do:

    Code:
    win.body.mask();
    The downside to that is if you have any dockedItems, it won't mask it.

    Code:
    win.getEl().mask();
    //or
    win.el.mask();
    Would work and in 4.1.0 beta 1, if you have the Window set as modal, the modal mask and the mask you place on the el will stay. In 4.0.7, once you mask() on the window's el, the modal mask will disappear.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  9. #8
    Sencha Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,695
    Vote Rating
    114
    Answers
    130
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    Mitchell, you are right. The getter is called:
    Code:
        // private
        getContentTarget: function() {
            return this.body;
        }
    Not a good choise regarding naming conventions...
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

Thread Participants: 2