I'm trying to create a constant bottom toolbar, which controls a panel above it. Then the panel above it should have a toolbar of its own (at the top). I've attempted the below code, which almost works, but I can't see the html of the sub-page inner panels. I think it's because the panel isn't taking up the remaining height, but I don't know why.
Anyone have any ideas? Thanks!
Ext.setup({
onReady: function() {
// Sub-page sections
var blah = {
style: "background-color: #B22222; color:#FF0000;",
title: "one",
html: "Why can't I see this html",
layout:"fit",
flex: 1
};
var blah2 = {
style: "background-color: #404040; color:#000000;",
title: "one",
html: "Why can't I see this html",
layout:"fit",
flex: 1
};
// Main portion of the page, which includes top toolbar and content
var page1 = new Ext.TabPanel({
dock: "bottom",
layout: "card",
items: [blah, blah2, blah],
title: "one",
flex: 1
});
// This is the outer panel with the bottom toolbar
var wrapper = new Ext.Panel({
fullscreen: true,
items: page1,
dockedItems: [
{
xtype: "toolbar",
dock: "bottom",
items: [
{
iconMask: true,
iconCls: "download"
},
{
iconMask: true,
iconCls: "favorites"
},
{
iconMask: true,
iconCls: "search"
},
{
iconMask: true,
iconCls: "user"
}
]
}
]
});
}
});