Question

i had a popup that looks like this :

items : [{

    xtype: 'form',
    title: 'Upload a Photo',
    width: 400,
    bodyPadding: 10,
    frame: false,
    renderTo: Ext.getBody(),
    items: [{
        xtype: 'filefield',
        name: 'photo',
        fieldLabel: 'Photo',
        labelWidth: 50,
        msgTarget: 'side',
        allowBlank: false,
        anchor: '100%',
        buttonText: 'Select Photo...'
    }]
}]

i only copied the example in sencha docs but when i run it, it gives me this :

enter image description here

instead of this :

enter image description here

my concern is that the button 'choose file' displayed instead of 'select photo'

how can i solve this.. ?

Était-ce utile?

La solution

Solved the problem... As @evan-trimboli mentioned, it was a css conflict. Just run sencha app build command for your project and it will work fine..

Help yourself by helping others

Autres conseils

I would add that run sencha app build, and then clear CACHE in browser.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top