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.

http://skypanther.com/temp/picker.png

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
2 Comments
  • 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

    view.add(deliverypicker);
    

    And try to do this the last possible

    view.add(picker_view);
    

    Let me know

    — answered November 20th 2010 by Dan Tamas
    permalink
    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
    permalink
    0 Comments
  • 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
    permalink
    0 Comments
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.