1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
    izak18 is on a distinguished road

      0  

    Default Answered: Window/items auto resize

    Answered: Window/items auto resize


    Hi everbody, I have a question. It is possible that all items of my view can change size automatically?
    For example, if I see in iPad, everything is fine, it looks good, but, when I see it in a blackberry or iphone, all items are too big for the screen, so it looks bad.

    I hope you can understand me, thanks in advance!

  2. I'm not totally sure about this, but it may have to do with the css being applied depending on the device you are on. Take a look at the debug version of the sench-touch.css, you'll notice these lines around 270
    Code:
    /* line 33, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body {
      font-size: 104%;
    }
    
    
    /* line 37, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body.x-ios {
      -webkit-backface-visibility: hidden;
    }
    
    
    /* line 41, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body.x-android.x-phone {
      font-size: 116%;
    }
    
    
    /* line 45, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body.x-android.x-phone.x-silk {
      font-size: 130%;
    }
    
    
    /* line 49, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body.x-ios.x-phone {
      font-size: 114%;
    }
    
    
    /* line 53, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body.x-desktop {
      font-size: 114%;
    }
    Maybe you can add another class to apply or see which class is being applied and change it accordingly so your items are scaled to the screen size more appropriately.

  3. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,142
    Answers
    131
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    I'm not totally sure about this, but it may have to do with the css being applied depending on the device you are on. Take a look at the debug version of the sench-touch.css, you'll notice these lines around 270
    Code:
    /* line 33, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body {
      font-size: 104%;
    }
    
    
    /* line 37, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body.x-ios {
      -webkit-backface-visibility: hidden;
    }
    
    
    /* line 41, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body.x-android.x-phone {
      font-size: 116%;
    }
    
    
    /* line 45, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body.x-android.x-phone.x-silk {
      font-size: 130%;
    }
    
    
    /* line 49, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body.x-ios.x-phone {
      font-size: 114%;
    }
    
    
    /* line 53, ../themes/stylesheets/sencha-touch/default/core/_core.scss */
    body.x-desktop {
      font-size: 114%;
    }
    Maybe you can add another class to apply or see which class is being applied and change it accordingly so your items are scaled to the screen size more appropriately.

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
    izak18 is on a distinguished road

      0  

    Default


    Thanks jerome, checking the css file I was just thinking about you said. Other question, How I can get the device I'm in to use in a listener?

  5. #4
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,142
    Answers
    131
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    You mean check the device? like this?

  6. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
    izak18 is on a distinguished road

      1  

    Default


    exactly, thank you so much.

  7. #6
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,142
    Answers
    131
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    Glad I could help

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar