cancel
Showing results for 
Search instead for 
Did you mean: 

dashlet onResize event

_jan
Champ on-the-rise
Champ on-the-rise
Hello,
Is there any option how to detect when dashlet is resized ?

Thanks
1 REPLY 1

janaka1984
Star Contributor
Star Contributor
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
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.