1. #1
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    209
    Answers
    4
    Vote Rating
    4
    squarefan is on a distinguished road

      0  

    Default Answered: Adding Absolute Overlays - zIndex Issues

    Answered: Adding Absolute Overlays - zIndex Issues


    Hey@all,

    I want to add an overlay e.g. a div that is positioned absolute with some message in there, but want it to follow the same 'hirachy' than normal touch elements and would like to know the proper procedure for it.

    To try it out I added a DIV to the index.html with display:none and assigned all the CSS styles to it. Then in the app I change the display style to block which makes it visible (with a z-index of 1). The problem I have now is that if I call e.g. an ActionSheet or Popup that it is behind this displayed DIV. I also tried to add a zIndex of 2 to the Actionsheet but it doesn't bring it in front.

    I'm sure there is a better way to this and 'hook' it into the Touch hirachy (and also probably create it programatically so that I don't have to add it to the index.html prior of actually needing it) so that I can call this absolute overlay and the actionsheet would be displayed over it with the modal mask etc.

    Any help is greatly appreciated!

    thanks,
    squarefan

  2. You will need to handle it so when you create the actionsheet then you would need to affect the div you are using.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,206
    Answers
    3517
    Vote Rating
    856
    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


    You will need to handle it so when you create the actionsheet then you would need to affect the div you are using.
    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.

Thread Participants: 1