DaveC426913
14 Jul 2010, 11:32 AM
I'm trying to make a virtual keyboard. My buttons are all appearing stacked in a vertical row, no matter what I do. What am I doing wrong?
initComponent: function() {
this.entryArray[0] = this.defaultEntryText;
var config = {
fullscreen: true,
items: [{
xtype: 'field',
id: 'entryfield',
value: this.entryArray
},{
xtype: 'panel',
defaults: {
layout: {type: 'hbox'},
ui: 'dark',
minWidth: 42,
maxWidth: 42,
},
items: [
{ xtype: 'button', text: 'Q'},
{ xtype: 'button', text: 'W'},
{ xtype: 'button', text: 'E'},
{ xtype: 'button', text: 'R'},
{ xtype: 'button', text: 'T'},
{ xtype: 'button', text: 'Y'},
{ xtype: 'button', text: 'U'},
{ xtype: 'button', text: 'I'},
{ xtype: 'button', text: 'O'},
{ xtype: 'button', text: 'P'},
]
}
initComponent: function() {
this.entryArray[0] = this.defaultEntryText;
var config = {
fullscreen: true,
items: [{
xtype: 'field',
id: 'entryfield',
value: this.entryArray
},{
xtype: 'panel',
defaults: {
layout: {type: 'hbox'},
ui: 'dark',
minWidth: 42,
maxWidth: 42,
},
items: [
{ xtype: 'button', text: 'Q'},
{ xtype: 'button', text: 'W'},
{ xtype: 'button', text: 'E'},
{ xtype: 'button', text: 'R'},
{ xtype: 'button', text: 'T'},
{ xtype: 'button', text: 'Y'},
{ xtype: 'button', text: 'U'},
{ xtype: 'button', text: 'I'},
{ xtype: 'button', text: 'O'},
{ xtype: 'button', text: 'P'},
]
}