Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2581 in a recent build.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    4
    Vote Rating
    0
    Nick Corthals is on a distinguished road

      0  

    Default Checkbox event not firing in

    Checkbox event not firing in


    REQUIRED INFORMATION


    Ext version tested:
    • Sencha Touch 2.0.0
    Browser versions tested against:
    • Google Chrome 17.0.963.83
    Description:
    • The last container in our view does not register the checked event for our checkboxfield. the problem goes away when you comment the type layout: hbox in the last container.
    Steps to reproduce the problem:
    • Setting the layout type of last container to hbox
    The result that was expected:
    • Listener of the checkboxfield should trigger
    The result that occurs instead:
    • No event is triggered
    Test Case:

    Code:
    Ext.define(Test.view.QuestionPanel', {
            extend: 'Ext.Panel',
        xtype: 'testpanel',
        
        config: {
            title: 'test',
            styleHtmlContent: true,
            
        items: [
            {
              xtype: 'container',
              layout: {
                type: 'hbox',
                pack: 'start',
                align: 'center'
              },
              items: [
                { xtype: 'button', iconCls: 'projector_32_160', iconMask: true, action: 'goProjectMode' },
                { xtype: 'spacer' },
                { xtype: 'button', iconCls: 'previous_32_160', iconMask: true},
                { id: 'btnStart', xtype: 'button', iconCls: 'play_32_160', iconMask: true, action: 'goStartStop'},
                { xtype: 'button', iconCls: 'next_32_160', iconMask: true},
                { xtype: 'spacer' },
                { xtype: 'button', iconCls: 'participants_32_160', iconMask: true, action: 'goParticipants' }
              ]
            },
            {
              xtype: 'container',
              id: 'grpQuestion',
              layout: {
                  type: 'vbox',
                  align: 'center'
                },
              items: [
                { id: 'questionTitle', cls: 'questionTitle' },
                { id: 'questionImage' },    
                {
                    id: 'lstAnswers',
                    
                    xtype: 'container',
                    layout: {
                        type: 'vbox',
                        align: 'left'
                    }
                }
              ]
            },
            
            { 
              xtype: 'container',
              docked: 'bottom',
              layout: {
                type: 'hbox',    // commenting this will make the checkbox listener to work
                pack: 'start',
                align: 'center'
              },
              items: [
                { xtype: 'button', iconCls: 'arrow2_left_32_160', iconMask: true  },
                { xtype: 'textfield', cls: 'textInputWidth'},
                { xtype: 'button', iconCls: 'arrow2_right_32_160', iconMask: true },
                { xtype: 'spacer' }, 
                { xtype: 'checkboxfield', label: 'Show answer',  labelWidth: 150,
                    listeners: {
                        check: function() {
                            console.log('triggered');
                        }
                    }
                }
            ]}
            ]    
        }
    });


    HELPFUL INFORMATION


    Debugging already done:
    • None
    Possible fix:
    • Not provided
    Additional CSS used:
    • Only default sencha css used
    Operating System:
    • Microsoft Windows 7

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    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


    Fixed for the next release. Many thanks.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Thread Participants: 2