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

[Bug] XF 5.0.0.2012 breaks TitleView width in iOS #13795

Closed
@Qythyx

Description

Description

This problem is iOS only, Android is fine. In Xamarin Forms 5.0.0.2012 the width of the TitleView is incorrect. It seems to no longer take into account the hamburger menu. This means that the width is wider than it should be, and anything that is aligned to the right, or full-width, will extend off the right side of the screen.

Steps to Reproduce

  1. Set a Shell.SetTitleView with a view that is either End-aligned or full-width.

Expected Behavior

Should not extend off the right side of the screen.

Actual Behavior

Extends off the right side of the screen.

Basic Information

  • Version with issue: 5.0.0.2012
  • Last known good version: previous 5.0 version, I forget the exact number

Screenshots

image

Reproduction Link

This is what I'm placing in the TitleView:

<?xml version="1.0" encoding="UTF-8" ?>
<ContentView
	x:Class="BeerApp.App.Forms.Controls.TitleView"
	xmlns="http://xamarin.com/schemas/2014/forms"
	xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
	<ContentView.Content>
		<Grid
			ColumnDefinitions="Auto,Auto"
			ColumnSpacing="0"
			HorizontalOptions="End"
			RowDefinitions="*,2"
			RowSpacing="0">
			<ImageButton
				Grid.Row="0"
				Grid.Column="0"
				Command="{Binding GotoOffers}"
				Source="icon_offers.png" />
			<ImageButton
				Grid.Row="0"
				Grid.Column="1"
				Command="{Binding GotoSummary}"
				Source="icon_beerbox.png" />
			<BoxView
				Grid.Row="1"
				Grid.Column="0"
				BackgroundColor="{AppThemeBinding Light={StaticResource LightColorPrimary},
												  Dark={StaticResource DarkColorPrimary}}"
				HeightRequest="2"
				IsVisible="{Binding IsOffers}" />
			<BoxView
				Grid.Row="1"
				Grid.Column="1"
				BackgroundColor="{AppThemeBinding Light={StaticResource LightColorPrimary},
												  Dark={StaticResource DarkColorPrimary}}"
				HeightRequest="2"
				IsVisible="{Binding IsSummary}" />
		</Grid>
	</ContentView.Content>
</ContentView>

Workaround

None.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions