Results 1 to 3 of 3

Thread: Ext.Carousel into Ext.Panel issue items alignment-positioning(anroid-phonegap)

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    5
    Vote Rating
    0
      0  

    Default 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
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Can I get the definitions of the emailform and registrationform classes?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    5
    Vote Rating
    0
      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'
                    }
                 
            ]
        }
    });

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •