Results 1 to 2 of 2

Thread: Adding Absolute Overlays - zIndex Issues

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha Premium Member
    Join Date
    Aug 2008
    Vote Rating

    Default Answered: Adding Absolute Overlays - zIndex Issues


    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!


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

Posting Permissions

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