Merge pull request #1446 from pnp/hb-resize-patch

Added resize event to Enhanced Power Apps
This commit is contained in:
Hugo Bernier 2020-08-15 13:26:46 -04:00 committed by GitHub
commit b9e4789088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -306,4 +306,13 @@ export default class EnhancedPowerAppsWebPart extends BaseClientSideWebPart<IEnh
this._themeVariant = args.theme;
this.render();
}
/**
* Redraws the web part when resized
* @param _newWidth
*/
protected onAfterResize(_newWidth: number): void {
// redraw the web part
this.render();
}
}