Skip to content

Commit 94eff8e

Browse files
fix-15154-Modified the code to align the edges of ContentView with the edges of platformView.
1 parent 7dfa7d4 commit 94eff8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ internal UIContainerCell(string cellId, View view, Shell shell, object context)
2929
}
3030

3131
var platformView = view.ToPlatform();
32-
platformView.TranslatesAutoresizingMaskIntoConstraints = false;
3332
ContentView.AddSubview(platformView);
3433
platformView.AccessibilityTraits |= UIAccessibilityTrait.Button;
34+
platformView.TranslatesAutoresizingMaskIntoConstraints = false;
3535

36-
platformView.LeadingAnchor.ConstraintEqualTo(ContentView.LeadingAnchor).Active = true;
37-
platformView.TrailingAnchor.ConstraintEqualTo(ContentView.TrailingAnchor).Active = true;
38-
platformView.TopAnchor.ConstraintEqualTo(ContentView.TopAnchor).Active = true;
39-
platformView.BottomAnchor.ConstraintEqualTo(ContentView.BottomAnchor).Active = true;
36+
ContentView.LeadingAnchor.ConstraintEqualTo(platformView.LeadingAnchor).Active = true;
37+
ContentView.TrailingAnchor.ConstraintEqualTo(platformView.TrailingAnchor).Active = true;
38+
ContentView.TopAnchor.ConstraintEqualTo(platformView.TopAnchor).Active = true;
39+
ContentView.BottomAnchor.ConstraintEqualTo(platformView.BottomAnchor).Active = true;
4040

4141
_renderer.PlatformView.ClipsToBounds = true;
4242
ContentView.ClipsToBounds = true;

0 commit comments

Comments
 (0)