Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected TabbedPage Tabbed
get { return (TabbedPage)Element; }
}

public VisualElement Element => _viewHandlerWrapper.Element ?? _element?.GetTargetOrDefault();
public VisualElement Element => _viewHandlerWrapper?.Element ?? _element?.GetTargetOrDefault();

public event EventHandler<VisualElementChangedEventArgs> ElementChanged;

Expand Down Expand Up @@ -132,6 +132,8 @@ public override void ViewDidLayoutSubviews()
{
base.ViewDidLayoutSubviews();

// On iPadOS 26.1+, ViewDidLayoutSubviews can be called during UITabBarController construction
// in narrow viewports (< 667 points) before Element is set. Guard against this.
if (Element is IView view)
view.Arrange(View.Bounds.ToRectangle());
}
Expand Down
Loading