OutstandingWorkflowRequestsWidget = function( widgetDef ) {
instance = this;
instance.widgetDef = widgetDef;
instance.readyPromise = $.Deferred();
instance.rootElement = $("
").addClass( "OutstandingWorkflowRequetsWidget" );
instance.init();
}
OutstandingWorkflowRequestsWidget.prototype.constructor = OutstandingWorkflowRequestsWidget;
OutstandingWorkflowRequestsWidget.prototype.onContentResized = function( rect ) {
// rect.height is the height in pixels for the widget content area (excluding the portlet frame stuff)
// the tab height is a derivative of rect.height
// the grid height for the to me tab is to fill the tab height
// the grid height for the from me tab is the to fill the tab height less the height of the nudge button
console.log( "OutstandingWorkflowRequestsWidget.onContentResized" );
console.log( rect );
let instance = this;
instance.tabPanel.option( "height", rect.height );
instance.toMeDataGrid.option( "height", rect.height );
instance.fromMeDataGrid.option( "height", rect.height - 75 );
}
OutstandingWorkflowRequestsWidget.prototype.init = function() {
let instance = this;
instance.nudgeButton = $("