Поле со списком и кнопка в поле ExtJS Composite - PullRequest
0 голосов
/ 31 марта 2011

Iam Используя поле композитинга для Combobox и кнопку редактирования бок о бок для этого, мой код равен

{
    xtype: 'fieldset',
    title: 'Covered under warranty',
    checkboxToggle: true,
    labelAlign: 'right',
    autoHeight: true,
    width: 730,
    items: [{
        bodyStyle: 'padding-left:5px;',
        layout: 'table',
        autoHeight: true,
        autoWidth: true,
        layoutConfig: {
            columns: 2
        },
        defaults: {
            frame: true,
            style: 'margin: 0 0 1px 3px'
        },
        items: [{
            xtype: 'fieldset',
            title: 'Warranty Manufacturer',
            autoHeight: true,
            width: 360,
            labelWidth: 110,
            items: [{
                xtype: 'compositefield',
                defaults: {
                    height: 20
                },
                fieldLabel: 'Company',
                items: [ComboComanyinWarranty, btnEdit]
            }, {
                xtype: 'compositefield',
                defaults: {
                    height: 20
                },
                fieldLabel: 'Company Location',
                width: 220,
                items: [ComboCompanyLocationInWarranty]
            }, {
                xtype: 'compositefield',
                defaults: {
                    height: 20
                },
                fieldLabel: 'Contact Person',
                width: 220,
                items: [ComboContactPersonInWarranty, {
                    xtype: 'button',
                    text: '...'
                }]
            }, {
                xtype: 'compositefield',
                defaults: {
                    height: 20
                },
                fieldLabel: 'Contact Phone',
                items: [{
                    xtype: 'displayfield',
                    value: ''
                }]
            }, {
                xtype: 'compositefield',
                defaults: {
                    height: 20
                },
                fieldLabel: 'Contact Mobile',
                items: [{
                    xtype: 'displayfield',
                    value: ''
                }]
            }, {
                xtype: 'compositefield',
                defaults: {
                    height: 20
                },
                fieldLabel: 'Contact Email',
                items: [{
                    xtype: 'displayfield',
                    value: ''
                }]
            }]

        }
   }

, но кнопки не отображаются должным образом в нижней части кнопки вырезания.поэтому, пожалуйста, помогите

Заранее спасибо

1 Ответ

0 голосов
/ 07 апреля 2011

Может быть autoheight не работает? Попробуйте установить его на фиксированную высоту ...

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...