Results 1 to 3 of 3

Thread: Column Layout - Pack: End

  1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    114
    Answers
    4

    Default Column Layout - Pack: End

    Hi there,

    I have a column layout with a width of 100%. I want to align the items inside to the right.
    I tried pack: 'end' but this doesn't do anything. This works in EXTJS 6 but I'm on 4.2.2.

    Any ideas?

  2. #2
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    2

    Lightbulb

    Did you get it working ?

    We are still using 4.2.3, so here a working code example.
    ( Check the pack property is on the parent container )
    Code:
    {    xtype: 'form',
        height: 47,
        width: 157,
        bodyPadding: 10,
        title: '',
        layout: {
            type: 'hbox',
            align: 'stretch',
            pack: 'end'
        },
        items: [
            {
                xtype: 'button',
                height: 42,
                id: 'purchaseButton',
                itemId: 'purchaseButton',
                text: 'Purchase'
            }
        ]
    }

  3. #3
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    114
    Answers
    4

    Default

    No never got it working. Yours work because it's a hbox layout. I think if you put it as column it won't work.

    Thanks for the reply though.

Similar Threads

  1. Replies: 2
    Last Post: 27 Nov 2012, 4:08 AM
  2. [CLOSED] Ext.Toolbar layout config align should be pack?
    By estesbubba in forum Sencha Touch 2.x: Bugs
    Replies: 1
    Last Post: 30 Jan 2012, 8:51 AM
  3. [B3] VBox-Layout ignores align/pack?
    By hl_igig in forum Ext: Discussion
    Replies: 2
    Last Post: 19 Apr 2011, 9:28 AM

Tags for this Thread

Posting Permissions

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