1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    2
    Vote Rating
    0
    marvin.consistem is on a distinguished road

      0  

    Default Unanswered: Fields missing on firefox....

    Unanswered: Fields missing on firefox....


    I made a simple screen using extjs 4.1 and the fields just vanish on firefox:
    FFvsCH.jpg

    Left firefox, right Chrome

    Here is the code:
    Code:
    Ext.define('MyApp.edit.com_consistem_cs4j_company_model_Company', {
        title : 'Empresa {Nova}',
        autoDestroy : true,
        closable : true,
        extend : 'Ext.form.Panel',
        xtype : 'form',
        labelWidth : '150',
        labelAlign : 'right',
        fieldDefaults : {
            labelWidth : '150',
            labelAlign : 'right',
            msgTarget : 'side'
        },
        defaults : {
            anchor : '100%'
        },
        defaultType : 'textfield',
        items : [ {
            xtype : 'hiddenfield',
            name : 'id'
        }, {
            fieldLabel : 'razaoSocial',
            name : 'razaoSocial'
        }, {
            fieldLabel : 'cnpj',
            name : 'cnpj'
        }, {
            fieldLabel : 'inscricaoEstadual',
            name : 'inscricaoEstadual'
        }, {
            fieldLabel : 'inscricaoSuframa',
            name : 'inscricaoSuframa'
        }, {
            fieldLabel : 'atividadeEconomica',
            name : 'atividadeEconomica'
        }, {
            xtype : 'combobox',
            fieldLabel : 'situacao',
            queryMode : 'local',
            displayField : 'label',
            valueField : 'value',
            store : Ext.create('Ext.data.Store', {
                autoDestroy : false,
                data : [ {
                    value : 'ATIVA',
                    label : 'ATIVA'
                }, {
                    value : 'INATIVA',
                    label : 'INATIVA'
                } ],
                idIndex : 0,
                fields : [ 'value', 'label' ]
            }),
            name : 'situacao'
        }, {
            xtype : 'fieldset',
            title : 'endereco',
            collapsible : false,
            defaultType : 'textfield',
            layout : 'anchor',
            defaults : {
                anchor : '100%'
            },
            items : [ {
                xtype : 'hiddenfield',
                name : 'id'
            }, {
                fieldLabel : 'logradouro',
                name : 'logradouro'
            }, {
                fieldLabel : 'numero',
                name : 'numero'
            }, {
                fieldLabel : 'complemento',
                name : 'complemento'
            }, {
                fieldLabel : 'bairro',
                name : 'bairro'
            }, {
                fieldLabel : 'cep',
                name : 'cep'
            }, {
                fieldLabel : 'telefone',
                name : 'telefone'
            }, {
                fieldLabel : 'fax',
                name : 'fax'
            }, {
                fieldLabel : 'email',
                name : 'email'
            }, {
                fieldLabel : 'uf',
                name : 'uf'
            }, {
                fieldLabel : 'municipio',
                name : 'municipio'
            } ],
            name : 'endereco'
        } ],
        initComponent : function() {
            this.buttons = [ {
                text : 'Salvar',
                icon : 'dynamic_arquivos/OOo3_tango_icons/save_16x16.png',
                action : 'save',
                handler : function() {
                    //TODO
                },
                scope : this
            }, {
                text : 'Close',
                handler : function() {
                    this.close();
                },
                scope : this
            } ];
            this.callParent(arguments);
        }
    });
    Is there anything obvious that I am missing?!

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Answers
    102
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    set your layout to anchor for the top-most component.

    Remove xtype for the class definition.

    labelWidth and labelAlign are not valid formPanel config options.

Thread Participants: 1