quaidbrown
17 Jan 2012, 7:22 AM
Trying to get the splitter to work. I can't find an example app that uses it.
Here's what I have:
var schedPanel = Ext.create("Ext.panel.Panel", {
items: [scheduler],
maintainFlex: true
});
var logPanel = Ext.create("Ext.panel.Panel", {
items: [eventLogPanel],
width: '100%'
});
var splitterContainer = Ext.create('Ext.panel.Panel', {
layout: {
type: 'vbox',
align: 'stretch'
},
items: [schedPanel,
{
xtype: 'splitter',
collapsible: true,
collapseTarget: 'next'
},
logPanel],
title: 'Schedule'
});
It lets me drag the splitter but doesn't resize anything, and the splitter handle snaps back to its original location when I let go.
When I collapse, the bottom panel goes blank. The splitter does not move from its original location. When I uncollapse, the bottom panel shoots to the top of the page, obscuring the splitter handle, and no more splitting can be done.
Here's what I have:
var schedPanel = Ext.create("Ext.panel.Panel", {
items: [scheduler],
maintainFlex: true
});
var logPanel = Ext.create("Ext.panel.Panel", {
items: [eventLogPanel],
width: '100%'
});
var splitterContainer = Ext.create('Ext.panel.Panel', {
layout: {
type: 'vbox',
align: 'stretch'
},
items: [schedPanel,
{
xtype: 'splitter',
collapsible: true,
collapseTarget: 'next'
},
logPanel],
title: 'Schedule'
});
It lets me drag the splitter but doesn't resize anything, and the splitter handle snaps back to its original location when I let go.
When I collapse, the bottom panel goes blank. The splitter does not move from its original location. When I uncollapse, the bottom panel shoots to the top of the page, obscuring the splitter handle, and no more splitting can be done.