var _Grid = { name:"extras.Grid", kind:"Control", className:"extras-grid", published:{ cellHeight:200, cellWidth:150, margin:0, collapsed:false }, create:function() { this.inherited(arguments); this.resizeHandler(); }, rendered:function() { this.inherited(arguments); if(!this.dim) { this.resizeHandler(); } }, // iterates children and repositions them positionControls:function() { var c = this.getControls(); if(c.length === 0) return; var d = this.getDimensions(); var colsPerRow = Math.floor(d.width/this.cellWidth); for(var i=0;i