Hi,
For TabSets we have autoChild support so we can set autoChildren on the individual panes. This seems to be missing in the Deck implementation. For now we have subclassed Deck and overridden the default 'setPanes' method as follows:
It would be quite handy if this could be incorporated into the main release, what do you guys think?
For TabSets we have autoChild support so we can set autoChildren on the individual panes. This seems to be missing in the Deck implementation. For now we have subclassed Deck and overridden the default 'setPanes' method as follows:
Code:
setPanes: function (panes) { if (panes == null) panes = []; var currentPane = isc.isA.String(this.currentPane) && this.currentPane.indexOf("autoChild:") === 0 ? this.currentPane : null; for ( let x = 0; x < panes.length; x++ ) { let pane = panes[x]; if (!isc.isA.Canvas(pane)) { var setAsCurrent = (currentPane === pane); pane = this.createCanvas(pane); if ( setAsCurrent ) this.currentPane = pane; panes[x] = pane; } } this.Super("setPanes", arguments); }
Comment