Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    188
    Vote Rating
    1
    davide.peri is on a distinguished road

      0  

    Default Controller painted event problem

    Controller painted event problem


    Hi there I have a problem using the controller.

    Here my Architect's details:

    version: 3.0.2.1375
    channel: 3.0.1-stable
    platform: 1.3.0.795
    cmd: 4.0.2.67
    framework: Sencha Touch 2.3.x

    If a add a "painted event" inside a container works perfectly.

    For example:

    Code:
    Ext.define('GM.view.HomeContainer', {
        extend: 'Ext.Container',
        alias: 'widget.homeContainer',
        requires: [
            'Ext.carousel.Carousel',
            'Ext.dataview.DataView',
            'Ext.XTemplate'
        ],
        config: {
            id: 'homeContainer',
            layout: 'vbox',
            items: [
    ....
            ],
            listeners: [
                {
                    fn: 'onHomeContainerPainted',
                    event: 'painted'
                }
            ]
        },
        onHomeContainerPainted: function(element, eOpts) {
            console.log("stat: home");
        }
    });
    If I convert the event into a Class Controller, the painted event is not fired.

    Here the Controller code:

    Code:
    Ext.define('GM.controller.StatsController', {
        extend: 'Ext.app.Controller',
    
    
        config: {
            control: {
                "#contactoMainContainer": {
                    painted: 'onContactoMainContainerPainted'
                },
                "#condicionesUsoPanel": {
                    painted: 'onCondicionesUsoPanelPainted'
                },
                "#appsMedidaPanel": {
                    painted: 'onAppsMedidaPanelPainted'
                }
            }
        },
    
    
        onContactoMainContainerPainted: function(element, eOpts) {
            console.log("stat: " + pagina);
        },
        onCondicionesUsoPanelPainted: function(element, eOpts) {
            console.log("stat: " + pagina);
        },
        onAppsMedidaPanelPainted: function(element, eOpts) {
            console.log("stat: " + pagina);
        }
    });
    I'm using Sencha Touch 2.3.1a.

    Could it be a bug?

    Best regards and thanks for your support.

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    188
    Vote Rating
    1
    davide.peri is on a distinguished road

      0  

    Default


    Hi there, I fixed the problem using the "Show" event instead of "Painted".Best regards.

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