1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    5
    Vote Rating
    0
    lorandT is on a distinguished road

      0  

    Default 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'
                               }
                           ]       
                   }
               ]          
            });     ]

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,550
    Vote Rating
    1120
    Answers
    3701
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default

    Can I get the definitions of the emailform and registrationform classes?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    5
    Vote Rating
    0
    lorandT is on a distinguished road

      0  

    Default

    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'
                    }
                 
            ]
        }
    });

Thread Participants: 1