I've got a SectionStack with three sections. In my last section, I have a ListGrid that I want to have a variable height, corresponding to the current height of the section.
If I don't specify a height on the ListGrid object, then my SectionStack gives my sections equal heights, which I don't want. I want this last grid to start off being 100px high, and let the user expand it if they want to.
But if I set the ListGrid height=100, then that ListGrid stays 100px when I resize that last section by dragging the section header. Resizing by opening or closing other areas in the section stack does correctly resize the grid.
I've tried placing my grid within a layout and placing the layout as in the sectionStack, but nothing seems to do the trick.
What am I doing wrong here?
Sample code:
If I don't specify a height on the ListGrid object, then my SectionStack gives my sections equal heights, which I don't want. I want this last grid to start off being 100px high, and let the user expand it if they want to.
But if I set the ListGrid height=100, then that ListGrid stays 100px when I resize that last section by dragging the section header. Resizing by opening or closing other areas in the section stack does correctly resize the grid.
I've tried placing my grid within a layout and placing the layout as in the sectionStack, but nothing seems to do the trick.
What am I doing wrong here?
Sample code:
Code:
var notesBox = isc.Canvas.create({ width: "100%", height: 200 }); var ledgerArea = isc.Canvas.create({ width: "100%", height: "*" }); var onHoldGrid = isc.ListGrid.create({ fields: [{ name: "A" }, { name: "B" }], height: 100 }); var sectionStack = isc.SectionStack.create({ visibilityMode: "multiple", width: "100%", headerHeight: 20, height: 800, sections: [ { title: "Notes", items: [notesBox], expanded: true }, { title: "Ledger", items: [ledgerArea], expanded: true }, { title: "Funds on Hold", items: [onHoldGrid], expanded: true, resizable: true } ] }); sectionStack.draw();
Comment