1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    12
    Vote Rating
    -1
    chamarts is an unknown quantity at this point

      0  

    Default Unanswered: Object [object Object] has no method 'getViewport'

    Unanswered: Object [object Object] has no method 'getViewport'


    Hi,

    I have developed an application with sencha touch pr3 and now migrating to the sencha-touch-2.0.1.1-gpl version. And I had to make some of the changes in my application as per new structure.

    I read somewhere refs is no more an array and should be mentioned something like this, but still the issue hasn't gone away.

    Code:
    Ext.application({
        name               : 'TestApp',
        autoCreateViewport : true,          
        controllers : [
            'App'                           
        ],
              config: { 
    	          refs : 
    	          {
    	              viewport : {                          
    	              	selector : 'test-viewport',
    	              },
                },
                handleClick: function() {
                  var viewport   = refs.getViewport(),
                       getViewport();
                  }
    }
    can some one tell me what is wrong with this code ? Its been four months I am out of this project and now migrating is looking little painful.

    thx
    Srinivas

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Posts
    12
    Vote Rating
    -1
    chamarts is an unknown quantity at this point

      -1  

    Default any helpiing hands ?

    any helpiing hands ?


    looking for helping hand to launch my application soon. appreciate any help.

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,784
    Answers
    3465
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    autoCreateViewport is not a valid config of Ext.application. Sencha Touch 2 creates a global "viewport" that by default is a Container with card layout that you can add items to and use. You can get this viewport via Ext.Viewport.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #4
    Sencha User
    Join Date
    Oct 2012
    Posts
    14
    Vote Rating
    0
    mlourdes is on a distinguished road

      0  

    Default ViewPort to show a form after click

    ViewPort to show a form after click


    can I use a viewport to show a form after a disclosure in a list , what is the best practice ? for sencha touch 2.0

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi