1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    255
    Answers
    6
    Vote Rating
    2
    landed is on a distinguished road

      0  

    Question Unanswered: Console.js:35[DEPRECATE][view.Layout#show] Call show() on a component that doesn't ..

    Unanswered: Console.js:35[DEPRECATE][view.Layout#show] Call show() on a component that doesn't ..


    Code:
        launch: function() {
    
    		Ext.widget('mainLayout').show();
    I have tried Ext.Viewport.add('mainLayout'); before the line above but I get an error so I am after the correct usage please anyone...

    Console.js:35[DEPRECATE][view.Layout#show] Call show() on a component that doesn't currently belong to any container. Please add it to the the Viewport first, i.e: Ext.Viewport.add(component);

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    49
    Answers
    6
    Vote Rating
    0
    j.k is on a distinguished road

      0  

    Default


    Try
    PHP Code:
    var mainView Ext.widget('mainLayout');
    Ext.Viewport.add(mainView); 

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    255
    Answers
    6
    Vote Rating
    2
    landed is on a distinguished road

      0  

    Default


    If I create using items {} fashion will I still need to add and show() the view in the actual class ?
    Thanks - at least my main view is showing.

  4. #4
    Sencha User
    Join Date
    Jun 2012
    Posts
    1
    Vote Rating
    0
    pumpapa is on a distinguished road

      0  

    Default Gotcha

    Gotcha


    Aaah, Ext.Viewport.add expects an array of components. The following doesn't generate the warning:

    var mainView = Ext.widget('mainLayout');
    Ext.Viewport.add([mainView]);

  5. #5
    Sencha User
    Join Date
    Sep 2013
    Location
    Ahmedabad
    Posts
    10
    Vote Rating
    0
    mitesh1818 is on a distinguished road

      0  

    Default


    you are try this code

    first define refs of this view class

    then automatically generate getter and setter method
    and try

    var sheet = this.getTagSheet(); //this is refs var ex:tagSheet:'#someId'
    if(typeof sheet== 'undefined'){
    var sheet= Ext.widget('addtag');
    Ext.Viewport.add(sheet);
    }
    sheet.show();


    it's work for me

Thread Participants: 3

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