kgmoney
25 Oct 2010, 7:55 AM
Hi,
I have the following code:
var panel = new Ext.Panel({
fullscreen: true,
layout: 'hbox',
layoutConfig: {
align: 'stretch'
},
cls: 'test',
items: [
new Ext.Panel({
flex: 1,
layout: 'fit',
cls: 'mainPanels',
html: 'qwer'
}),
new Ext.Panel({
layout: 'fit',
flex: 1,
cls: 'mainPanels',
html: 'asdf'
})
]
});
and styles:
.mainPanels {
background-color: #ff0000;
color: #ffffff;
}
.test {
background-color: #00ff00;
}
and it renders as depicted in this image: 23007
My desire/expectation is that the red panels would be stretched vertically. Can someone point out to me what it is that I'm doing wrong?
Thanks much,
Kevin
I have the following code:
var panel = new Ext.Panel({
fullscreen: true,
layout: 'hbox',
layoutConfig: {
align: 'stretch'
},
cls: 'test',
items: [
new Ext.Panel({
flex: 1,
layout: 'fit',
cls: 'mainPanels',
html: 'qwer'
}),
new Ext.Panel({
layout: 'fit',
flex: 1,
cls: 'mainPanels',
html: 'asdf'
})
]
});
and styles:
.mainPanels {
background-color: #ff0000;
color: #ffffff;
}
.test {
background-color: #00ff00;
}
and it renders as depicted in this image: 23007
My desire/expectation is that the red panels would be stretched vertically. Can someone point out to me what it is that I'm doing wrong?
Thanks much,
Kevin