This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with ListView wrong top padding in iOS 15 (#14671)
- Loading branch information
1 parent
0e1ba44
commit 9fb6583
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue14664.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using Xamarin.Forms.CustomAttributes; | ||
using Xamarin.Forms.Internals; | ||
|
||
#if UITEST | ||
using Xamarin.UITest; | ||
using NUnit.Framework; | ||
using Xamarin.Forms.Core.UITests; | ||
#endif | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
[Preserve(AllMembers = true)] | ||
[Issue(IssueTracker.Github, 14664, "[Bug] ImageButton.Aspect Property is always Fill", | ||
PlatformAffected.iOS)] | ||
#if UITEST | ||
[NUnit.Framework.Category(UITestCategories.ListView)] | ||
[NUnit.Framework.Category(UITestCategories.ManualReview)] | ||
#endif | ||
public class Issue14664 : TestContentPage | ||
{ | ||
protected override void Init() | ||
{ | ||
var layout = new Grid | ||
{ | ||
BackgroundColor = Color.Red | ||
}; | ||
|
||
var listView = new ListView | ||
{ | ||
BackgroundColor = Color.Green, | ||
ItemsSource = new string[] | ||
{ | ||
"Item 1", | ||
"Item 2", | ||
"Item 3", | ||
"Item 4", | ||
"Item 5", | ||
"Item 6", | ||
"Item 7", | ||
"Item 8", | ||
"Item 9" | ||
} | ||
}; | ||
|
||
layout.Children.Add(listView); | ||
|
||
Content = layout; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters