Merge pull request #1446 from pnp/hb-resize-patch
Added resize event to Enhanced Power Apps
This commit is contained in:
commit
b9e4789088
|
@ -306,4 +306,13 @@ export default class EnhancedPowerAppsWebPart extends BaseClientSideWebPart<IEnh
|
||||||
this._themeVariant = args.theme;
|
this._themeVariant = args.theme;
|
||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Redraws the web part when resized
|
||||||
|
* @param _newWidth
|
||||||
|
*/
|
||||||
|
protected onAfterResize(_newWidth: number): void {
|
||||||
|
// redraw the web part
|
||||||
|
this.render();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue