Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextBox height changes when text is entered if PlaceholderText is set #10378

Open
g0g8rz opened this issue Feb 21, 2025 · 0 comments
Open

TextBox height changes when text is entered if PlaceholderText is set #10378

g0g8rz opened this issue Feb 21, 2025 · 0 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@g0g8rz
Copy link

g0g8rz commented Feb 21, 2025

Describe the bug

If you have a TextBox in a Auto-sizing grid row (and perhaps other situations) and this TextBox has PlaceholderText set, the TextBox will resize slightly when real text is entered.

Steps to reproduce the bug

Create a Grid with a textbox (code example below) and set PlaceholderText. Then run the code and enter text into the box.

Expected behavior

Height to remain the same

Screenshots

TextBox-PlaceholderText-Height-but.mp4

NuGet package version

WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002

Windows version

Windows 11 (23H2): Build 22631

Additional context

Workaround is to set a MinHeight and the problem goes away

@g0g8rz g0g8rz added the bug Something isn't working label Feb 21, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant