Hybrid View
-
23 Apr 2012 6:16 PM #1
Itemtap on popup list doesnt fire when layout 'fit' used
Itemtap on popup list doesnt fire when layout 'fit' used
Not sure if this is a bug - it appears so:
>>
REQUIRED INFORMATION
Ext version tested:- Sencha Touch 2.0.0
- chrome 18.0.1025.162 m
- Popup panel with list. Itemtap event doesnt fire when layout is'fit'. Need layout 'fit' to display list on iphone otherwise it comes up blank.
- popup with list and itemtap event set layout to 'fit' then comment out layout
- item tap event should fire
- item tap event only fires when layout 'fit' not in place
comment the layout: 'fit' line to see it working
Code:Ext.define('MyApp.view.MyMain', { extend: 'Ext.Panel', xtype: 'MyMain', requires: ['MyApp.view.MyPopup' ], config : { fullscreen: true, html: 'Hello World.' , items: [ { xtype: 'textfield', itemId: 'myfield', name: 'myfield', label: '1/ enter value 2/move to next field', labelWidth: '50%' }, { xtype: 'textfield', itemId: 'firstname', name: 'firstname', label: 'first' }, { xtype: 'textfield', itemId: 'lastname', name: 'lastname', label: 'last' } ] } , initialize: function () { console.log('initialize MyMain'); this.callParent(); } });
-
24 Apr 2012 5:14 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,617
- Vote Rating
- 435
Can I see the MyApp.view.MyPopup class? I cannot reproduce in 2.0.1 RC with this code:
Code:var panel = new Ext.Panel({ centered : true, width : 300, height : 300, layout : 'fit', items : [ { xtype : 'list', itemTpl : '{text}', store : { fields : ['text'], data : [ { text : 'One' }, { text : 'Two' } ] }, listeners : { itemtap : function() { console.log('itemtap fired'); } } } ] }); Ext.Viewport.add(panel);Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
24 Apr 2012 5:18 AM #3
Hi,
thx - I'm not sure what has happened to my original post but I did provide a link/URL to the full example.
Here it is.
http://www.senchafiddle.com/#EV7qM
thanks
-
24 Apr 2012 5:29 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,617
- Vote Rating
- 435
The code there is the same as in your first post and doesn't have a popup list or fit layout or itemtap event listener.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
24 Apr 2012 6:05 AM #5
hi - thats very weird - when I cick on this URL I see multiple tabs for each of the files in the senchafiddle tool - just tried on my iphone and even see the other code files.
anyways I have attached the zip of the application - includes the app.js , views and controller.
thx
-
24 Apr 2012 7:27 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,617
- Vote Rating
- 435
So I load your app code, I enter a value in the first text field and tab to the next one which is first. I get a floating panel with a list in it. I tap on an item and it populates both the first and last fields. I am using 2.0.1 RC using Chrome 18 and iOS Simulator (iPad 5.1)
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2839
in
2.1.


Reply With Quote