diff --git a/common/changes/jostrick-fix-viewport_2017-04-28-20-56.json b/common/changes/jostrick-fix-viewport_2017-04-28-20-56.json new file mode 100644 index 0000000000000..76c80ab8f3098 --- /dev/null +++ b/common/changes/jostrick-fix-viewport_2017-04-28-20-56.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@uifabric/utilities", + "comment": "withViewport: Preserving the `forceUpdate` parameter when asynchronously re-resolving the viewport size.", + "type": "patch" + } + ], + "email": "jostrick@microsoft.com" +} diff --git a/packages/office-ui-fabric-react/src/utilities/decorators/withViewport.tsx b/packages/office-ui-fabric-react/src/utilities/decorators/withViewport.tsx index 749de86acfc92..fb3a4ba280edb 100644 --- a/packages/office-ui-fabric-react/src/utilities/decorators/withViewport.tsx +++ b/packages/office-ui-fabric-react/src/utilities/decorators/withViewport.tsx @@ -99,7 +99,7 @@ export function withViewport

(ComposedComp width: clientRect.width, height: scrollRect.height } - }, this._updateViewport); + }, () => { this._updateViewport(withForceUpdate); }); } else { this._resizeAttempts = 0; updateComponent();