microsoft / microsoft/microsoft-ui-xaml

TextBox PlaceholderText is no longer centered correctly in v1.6.0

Open
#10,014 14 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-TextBox area-UIDesign bug Regression
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

In WindowsAppSDK 1.5 `` it looks correct like this:
![image](https://github.com/user-attachments/assets/6ec7deef-7936-4f7c-9a42-1cacb54d77af)

In v1.6 `` it suddenly looks like this:
![image](https://github.com/user-attachments/assets/d05c93fb-fddf-4948-a33b-d8663afa87ab)

So whatever has changed it messes with the positioning of the PlaceholderText.

### Steps to reproduce the bug

```xaml



Click Me

```

### Expected behavior

_No response_

### Screenshots

_No response_

### NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

### Windows version

Windows 10 (21H2): Build 19044

### Additional context

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied XAML reproduction and compare the TextBox PlaceholderText layout under Windows App SDK 1.5.240802000 and 1.6.240829007 on Windows 10 build 19044. Investigate the version change affecting placeholder positioning; done when the placeholder is centered as it was in 1.5 without regressing the reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.