Remove unnecessary conditional statement.

This commit is contained in:
BDisp
2024-11-20 12:52:25 +00:00
parent 6cb8478b6e
commit be0832febb

View File

@@ -113,17 +113,14 @@ internal class TabRowView : View
base.OnHasFocusChanged (newHasFocus, previousFocusedView, focusedView);
}
/// <inheritdoc />
/// <inheritdoc/>
protected override void OnSubviewLayout (LayoutEventArgs args)
{
if (NeedsLayout)
{
_host._tabLocations = _host.CalculateViewport (Viewport).ToArray ();
_host._tabLocations = _host.CalculateViewport (Viewport).ToArray ();
RenderTabLine ();
RenderTabLine ();
RenderUnderline ();
}
RenderUnderline ();
base.OnSubviewLayout (args);
}