Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[MacOS] Also update page when it resizes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Sep 28, 2016
1 parent e316b6c commit dc5d182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xamarin.Forms.Platform.MacOS/VisualElementTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void OnUpdateNativeControl(CALayer caLayer)
// iOS is a really big fan of you not actually modifying the View's of the NSViewControllers
// TODO: Find why it doesn't work to check if the parentsBounds changed and remove true;
parentBoundsChanged = true;
if ((!(visualElement is Page) || visualElement is ContentPage) && width > 0 && height > 0 && parent != null && (boundsChanged || parentBoundsChanged))
if (width > 0 && height > 0 && parent != null && (boundsChanged || parentBoundsChanged))
{
var visualParent = parent as VisualElement;
Expand Down

0 comments on commit dc5d182

Please sign in to comment.