Code:
initialize: function () { var upperspacer = Ext.create('Ext.Container', {
height: upperMarginHomeScreen,
layout:{
type: 'hbox',
align: 'strech'
},
html: ' '
});
var middlespacer = Ext.create('Ext.Container', {
height: middleSpacerHomeScreen,
layout:{
type: 'hbox',
align: 'strech'
},
html: ' '
});
var upperpanel = Ext.create('Ext.Container', {
height: 256,
layout:{
type: 'hbox',
align: 'strech'
},
defaults:{flex:'1'},
items: [
{
xtype: 'panel',
heigth: 190,
width: leftMarginHomeScreen
},
{
xtype: 'button',
id: 'cmdRadiology',
cls: 'radiologyButton',
pressedCls: 'radiologyButtonPressed',
scope: this
},
{
xtype: 'panel',
heigth: 190
},
{
xtype: 'button',
id: 'cmdDocuments',
html: 'Documenten',
heigth: 190
},
{
xtype: 'panel',
heigth: 190
},
{
xtype: 'button',
html: 'Documenten',
heigth: 190
},
{
xtype: 'panel',
heigth: 190,
width: leftMarginHomeScreen
}
]
});
var bottompanel = Ext.create('Ext.Container', {
height: 256,
layout:{
type: 'hbox',
align: 'strech'
},
defaults:{flex:'1'},
items: [
{
xtype: 'panel',
heigth: 190,
width: leftMarginHomeScreen
},
{
xtype: 'button',
html: 'Radiologie',
heigth: 190
},
{
xtype: 'panel',
heigth: 190
},
{
xtype: 'button',
html: 'Documenten',
heigth: 190
},
{
xtype: 'panel',
heigth: 190
},
{
xtype: 'button',
html: 'Documenten',
heigth: 190
},
{
xtype: 'panel',
heigth: 190,
width: leftMarginHomeScreen
}
]
});
But as you can see, the allignment is all hardcoded. When I turn my iPad all the allignment is messed up. Can anyone help me out here? There is no control in Sencha like a Unigrid (Silverlight) that detirmes all spaces etc.? I need some help with this. Thank you.