Skip to content

Commit 82e1207

Browse files
authored
Minor build error fix (microsoft#13288)
1 parent c398b37 commit 82e1207

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/sample-app-fabric/windows/SampleAppFabric/SampleAppFabric.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ void UpdateRootViewSizeToAppWindow(
3434
// Do not relayout when minimized
3535
if (window.Presenter().as<winrt::Microsoft::UI::Windowing::OverlappedPresenter>().State() !=
3636
winrt::Microsoft::UI::Windowing::OverlappedPresenterState::Minimized) {
37-
rootView.Arrange(size);
38-
rootView.Size(size);
37+
winrt::Microsoft::ReactNative::LayoutConstraints constraints;
38+
constraints.MaximumSize = constraints.MinimumSize = size;
39+
rootView.Arrange(constraints, {0, 0});
3940
}
4041
}
4142

0 commit comments

Comments
 (0)