Results 1 to 2 of 2

Thread: Adding Absolute Overlays - zIndex Issues

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    209
    Answers
    4
    Vote Rating
    4
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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