-
14 Nov 2011 11:33 PM #1
Unanswered: Ext.Carousel into Ext.Panel issue items alignment-positioning(anroid-phonegap)
Unanswered: Ext.Carousel into Ext.Panel issue items alignment-positioning(anroid-phonegap)
Can somebody explain me what is wrong in this code as you see in the image the second carousel item's top is aligned with first bottom(or parent bottom) each time change his position jumps up down , and I don't know why...
thx, Lorand
device-2011-11-15-091146.jpg
Source code:Code:Ext.application({ name: 'pcapital', controllers: ['Home'], launch: function () {var carousel = Ext.create('Ext.Panel',{ fullscreen: true, items:[ { xtype: 'toolbar', docked: 'top', items: [ { xtype: 'spacer', width: 50 }, { xtype: 'spacer' }, { xtype: 'title', title: 'Personal Capital' }, { xtype: 'spacer' }, { xtype: 'button', iconMask: true, iconCls: 'refresh' } ] }, { id:'content', xtype:'carousel', defaults: { styleHtmlContent: true }, items:[ { xtype: 'emailform' }, { xtype: 'registrationform' }, { title: 'Home', iconCls: 'home', html: '<img src="http://staging.sencha.com/img/sencha.png" />' }, { title: 'Compose', iconCls: 'compose', xtype: 'homepage' } ] } ] }); ]
-
16 Nov 2011 1:57 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
- Answers
- 3102
Can I get the definitions of the emailform and registrationform classes?
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.
-
16 Nov 2011 10:55 PM #3
Code:Ext.define('pcapital.view.form.EmailForm', { extend: 'Ext.Panel', alias: 'widget.emailform', layout:'fit', config: { title:'test', items:[ { xtype:'spacer', height:'30px' }, { xtype:'fieldset', instructions: 'Enter your email address.', defaults: { labelWidth: '35%' }, items: [ { xtype:'emailfield', label:'Email', name:'textEmail', placeHolder:'me@email.x' } ] }, { xtype:'button', text:'Continue' } ] }, initialize: function() { console.log("InitComponent for email form"); this.callParent(); } });Code:Ext.define('pcapital.view.form.RegistrationForm', { extend: 'Ext.Panel', alias: 'widget.registrationform', layout:'fit', config: { items: [ { xtype:'spacer', height:'30px' }, { xtype: 'fieldset', instructions: 'This will be your Personal Capital User ID.', defaults: { labelWidth: '35%' }, items: [ { xtype:'emailfield', label:'Email', name:'textEmail', placeHolder:'email' }, {xtype:'spacer'}, { xtype:'passwordfield', labelAlign:'left', label:'Password', name:'password' }, { xtype:'passwordfield', labelAlign:'left', label:'Verify' } ] }, { xtype:'button', text:'Continue' } ] } });


Reply With Quote