Skip to content

[Android/iOS] CommandBar padding is not applied properly #904

Open
@Guidemarcus

Description

@Guidemarcus

Current behavior

toolkit:VisibleBoundsPadding.PaddingMask.Top is only applied on the first child of a page.

Expected behavior

toolkit:VisibleBoundsPadding.PaddingMask.Top should be applied on any child if it is at the top of the page

How to reproduce it (as minimally and precisely as possible)

<Page x:Class="ApplicationTemplate.Views.Content.DadJokesPage"
	  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	  xmlns:toolkit="using:Uno.UI.Toolkit"
	  mc:Ignorable="d">
	<Grid Background="{StaticResource MaterialBackgroundBrush}">

		<Rectangle Fill="Red"
				   Height="30"
				   toolkit:VisibleBoundsPadding.PaddingMask="Top" />
	</Grid>
</Page>

Workaround

none found

Works on UWP/WinUI

No response

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia

NuGet package version(s)

uno.ui 4.2.6

Affected platforms

iOS, Android

IDE

Visual Studio 2022

IDE version

17.1.0

Relevant plugins

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions