Hi,
If you use Alfresco aikau framework, then use Alfresco/dashlets/Dashlet
/**
* Handle resize events
*
* @instance
* @param {object} evt The resize event object
* @param {object} ui The data about the resize
*/
onResize: function alfresco_layout_AlfSideBarContainer__onResize( /*jshint unused:false*/ evt, /*jshint unused:false*/ ui) {
this.bodyHeight = this.bodyNode.clientHeight;
this.alfPublishResizeEvent(this.bodyNode);
},
Regards
janaka