-
26 Mar 2012 12:55 AM #1
Checkbox event not firing in
Checkbox event not firing in
REQUIRED INFORMATION
Ext version tested:- Sencha Touch 2.0.0
- Google Chrome 17.0.963.83
- 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.
- Setting the layout type of last container to hbox
- Listener of the checkboxfield should trigger
- No event is triggered
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
- Not provided
- Only default sencha css used
- Microsoft Windows 7
-
26 Mar 2012 8:01 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
Thank you for the report.
-
26 Mar 2012 10:59 AM #3
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.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2581
in
2.0.


Reply With Quote