Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Combo box - having troubles with the cssgallery.info solution

I posted this question in the comments on the cssgallery.info site but maybe someone else has found a solution. I've implemented the picker w/in a view technique that Dan Tamas suggested. I did so within a ScrollableView. When the picker's view slides up, it's like it's transparent as the controls from the scrollable view show through.


I've tried setting a zIndex and backgroundColor on the picker's view. But that had no effect. I tried using a ScrollView instead of a ScrollableView but then the picker itself, not the view that wraps it, shows up atop the ScrollView blocking all interaction.

Any ideas?

— asked November 19th 2010 by Tim Poulsen
  • iphone
  • picker
  • It would help if you could paste some working code. Try to make it as simple as possible, to show only the adverse behaviour you are seeking advice about without any functionality that isn't related. Make sure that it does not contain syntax errors, and it will run if someone pastes it into their app.js. Then, I am sure it will be easy to help you.

    — commented November 19th 2010 by Paul Dowsett
  • Here you go… http://pastie.org/1312147 I've stripped out a lot of other code to , so what's there isn't going to run completely on its own. But it's the key portions

    — commented November 19th 2010 by Tim Poulsen

3 Answers

  • Accepted Answer

    It looks to me that you are doing this twice


    And try to do this the last possible


    Let me know

    — answered November 20th 2010 by Dan Tamas
    1 Comment
    • Thank you! Sorry I missed something so stupid as a doubling up of the view.add statement.

      — commented November 20th 2010 by Tim Poulsen
  • You will have to set the view that contains the picker at a higher zIndex, or try to add it the last one when you are building the things inside your code.
    But as Hal said we might use a pastie to see what's there :)

    — answered November 19th 2010 by Dan Tamas
  • Repeating my comment so that this gets bumped…

    See http://pastie.org/1312147 for the relevant section of my code.

    — answered November 20th 2010 by Tim Poulsen
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.