I mean, that's basically it...here's the full app:
Code:
onReadyFn = function () {
Ext.create("Ext.application", {
name: 'test',
launch: function () {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
xtype: 'datefield',
fieldLabel: 'Testing Datefield',
format: 'mm/dd/YYYY'
}
]
});
}
});
};
Ext.onReady(onReadyFn);
the panel shouldn't need an explicit dimensions, though I also tried putting it within a panel with explicit dimensions and that didn't work either:
Code:
onReadyFn = function () {
Ext.create("Ext.application", {
name: 'test',
launch: function () {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
xtype: 'panel',
layout: 'hbox',
height: 200,
width: 200,
items: [
{
xtype: 'datefield',
fieldLabel: 'Testing Datefield',
format: 'mm/dd/YYYY',
flex: 1
}
]
}
]
});
}
});
};
Ext.onReady(onReadyFn);
Note that I've tried putting this in a bunch of different layouts/etc. in my app and can't get it to work anywhere. Also, all of the datefield/pickers worked fine in my app in 4.0.7.