Results 1 to 2 of 2

Thread: Ext.Button -> height config

    You found a bug! We've classified it as TOUCH-891 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,748
    Vote Rating
    128
      0  

    Default Ext.Button -> height config

    hi team,

    this works for sheets & toolbars, but when you have a vbox layout containing hbox layouts with buttons, the buttons get flexed vertically instead of the containers and the height does not get applied at all.

    this worked fine in ST 1.

    Code:
            layout : {
                type  : 'vbox',
                pack  : 'center',
                align : 'stretch'
            },
            defaults: {
                layout: {
                    type: 'hbox'
                },
                flex: 1,
                defaults : {
                    xtype     : 'button',
                    baseCls   : 'x-button',
                    flex      : 1,
                    height    : '3.3em',
                    iconAlign : 'top',
                    iconMask  : true,
                    style     : 'margin : .3em; padding: .4em;',
                    ui        : 'round'
                }
            },
            items : [{
                items : [{
                    action  : 'showNewsView',
                    iconCls : 'chat',
                    text    : 'News'
                },...
    drop me an email / pm for a demo usecase if needed.
    Best regards
    Tobias Uhlig

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Vote Rating
    7
      0  

    Default

    Is this now how it should look?



    Looks correct from reading the code.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Posting Permissions

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