-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
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
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,27 @@ | ||
namespace Maui.Controls.Sample.Issues; | ||
|
||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
[Issue(IssueTracker.Github, "21488", "Button text doesn't update when CharacterSpacing is applied", PlatformAffected.iOS)] | ||
public partial class Issue21488 : ContentPage | ||
{ | ||
public Issue21488() | ||
{ | ||
var buttonWithoutCharacterSpacing = new Button(); | ||
var buttonWithCharacterSpacing = new Button() { CharacterSpacing = 15 }; | ||
var entry = new Entry() { AutomationId = "Entry" }; | ||
entry.TextChanged += (s, e) => | ||
{ | ||
buttonWithoutCharacterSpacing.Text = entry.Text; | ||
buttonWithCharacterSpacing.Text = entry.Text; | ||
}; | ||
|
||
Content = new VerticalStackLayout() | ||
{ | ||
new Label() { Text = "Button without character spacing:" }, | ||
buttonWithoutCharacterSpacing, | ||
new Label() { Text = "Button with character spacing:" }, | ||
buttonWithCharacterSpacing, | ||
entry | ||
}; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21488.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,24 @@ | ||
using NUnit.Framework; | ||
using UITest.Appium; | ||
using UITest.Core; | ||
|
||
namespace Microsoft.Maui.TestCases.Tests.Issues | ||
{ | ||
public class Issue21488 : _IssuesUITest | ||
{ | ||
public Issue21488(TestDevice testDevice) : base(testDevice) | ||
{ | ||
} | ||
|
||
public override string Issue => "Button text doesn't update when CharacterSpacing is applied"; | ||
|
||
[Test] | ||
[Category(UITestCategories.Button)] | ||
public void ButtonTextShouldUpdate() | ||
{ | ||
App.WaitForElement("Entry"); | ||
App.EnterText("Entry", "Hello, Maui!"); | ||
VerifyScreenshot(); | ||
} | ||
} | ||
} |