Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Ext JS Premium Member
    Join Date
    Dec 2010
    Posts
    32
    Vote Rating
    0
    planewryter is on a distinguished road

      0  

    Default Controller Not Recognizing xtype ComponentQuery

    Controller Not Recognizing xtype ComponentQuery


    Possible bug.

    After hours of running various tests, it looks like ST2 PR2 might have a bug in the way Ext.app.Controller is using Ext.ComponentQuery to provision a control...or--the other alternative is--I just can't figure out how to invoke control correctly.

    According the docs, Ext.ComponentQuery can be invoked with an xtype.

    Below is an example which illustrates the problem.

    The function called by the painted control is not being invoked:

    Code:
    Ext.define('MyApp.controller.Viewport', {
    extend: 'Ext.app.Controller', views: ['Hello'], init: function(){
    this.control({
    'hello': { //xtype provisioned in Hello.js
    painted: this.onContainerPainted
    }
    });
    }, onContainerPainted: function(){
    console.log('The container was painted'); //DOES NOT DISPLAY IN CONSOLE
    }
    }); console.log('Exiting MyApp.controller.Viewport'); //DOES DISPLAY IN CONSOLE
    Welcome your suggestions; thanks!

    Plane Wryter

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Few tips to debug:

    - Have you tried listening to the painted event on the component itself?
    - Try hiding and then showing the component. Does the controller get the event then?

    It looks like the painted event *may* be getting fired too early?
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Thread Participants: 1

Tags for this Thread

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