Titanium Community Questions & Answer Archive

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

Slider in a vertical mode.. iPhone

Anyone who successfully have been making the basic sliders to operate in a vertical mode? I've been trying with help of this tread:
http://developer.appcelerator.com/question/8791/2dmatrix-basic-rotate
And on my own, but… Can't do it..
Anybody else?

— asked December 6th 2010 by Jonas Svanström
  • basic
  • iphone
  • slider
  • vertical
0 Comments

2 Answers

  • Accepted Answer

    This worked to get a vertical slider in a small popover on an iPad app. I had to adjust the position by trial and error.

            var t = Titanium.UI.create2DMatrix();
        t = t.rotate(-90);
        slider = Titanium.UI.createSlider({
            min:1.0,
            max:10.0,
            value:1,
            width:270,
            height:'auto',
            top:140,    
            transform:t,
        });
    
    — answered December 6th 2010 by Tom Campbell
    permalink
    2 Comments
    • Thanks a million! This really worked out!
      Wonderful :-)

      — commented December 7th 2010 by Jonas Svanström
    • Hi Tom, sadly this does not work on Android. Do u know any workaround? Thanx!

      — commented December 7th 2012 by devashree s
  • If you add it to a view and rotate the view?

    — answered December 6th 2010 by Dan Tamas
    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.