Skip to content

Instantly share code, notes, and snippets.

@dmachi
Created June 15, 2012 01:13
Show Gist options
  • Save dmachi/2934029 to your computer and use it in GitHub Desktop.
Save dmachi/2934029 to your computer and use it in GitHub Desktop.
Custom dGrid in ContentPane that resizes
define(["dojo/_base/declare", "dgrid/OnDemandGrid", "dgrid/extensions/DijitRegistry","dojo/dom-geometry"],
function(declare,Grid,DijitRegistryExt,domGeometry) {
return declare([Grid,DijitRegistryExt], {
resize: function(){
if (arguments.length>0){
domGeometry.setMarginBox(this.domNode, arguments[0]);
}
this.inherited("resize", arguments);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment