forked from xamarin/Xamarin.Forms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[macOS] Visual glitch when exiting the full screen with ScrollViewer (x…
…amarin#8086) fixes xamarin#4854 * added test for issue4854 * fix issue4854
- Loading branch information
1 parent
9539db6
commit b31d505
Showing
3 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue4854.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,42 @@ | ||
using System; | ||
using System.Linq.Expressions; | ||
using Xamarin.Forms.CustomAttributes; | ||
using Xamarin.Forms.Internals; | ||
|
||
#if UITEST | ||
using NUnit.Framework; | ||
#endif | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
[Preserve(AllMembers = true)] | ||
[Issue(IssueTracker.Github, 4854, "[macOS] Visual glitch when exiting the full screen with ScrollViewer", PlatformAffected.macOS)] | ||
public class Issue4854 : TestContentPage | ||
{ | ||
|
||
protected override void Init() | ||
{ | ||
var gMain = new Grid { BackgroundColor = Color.LightBlue }; | ||
gMain.RowDefinitions.Add(new RowDefinition { Height = GridLength.Star }); | ||
gMain.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); | ||
|
||
var label = new Label | ||
{ | ||
Text = "Enter full screen and exit and see the artifacts on the screen.", | ||
FontSize = 14 | ||
}; | ||
var sl = new StackLayout { HorizontalOptions = LayoutOptions.Center, WidthRequest = 300, Padding = new Thickness(15) }; | ||
sl.Children.Add(label); | ||
gMain.Children.Add(sl); | ||
|
||
var button = new Button { Text = "Test", BackgroundColor = Color.Gray, HorizontalOptions = LayoutOptions.Center }; | ||
var g = new Grid { BackgroundColor = Color.LightGray, Padding = new Thickness(20) }; | ||
g.Children.Add(button); | ||
Grid.SetRow(g, 1); | ||
gMain.Children.Add(g); | ||
|
||
Content = new ScrollView { Content = gMain, BackgroundColor = Color.LightGreen }; | ||
} | ||
|
||
} | ||
} |
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