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 PlaceholderText is no longer centered correctly in v1.6.0 #10014

Open
Balkoth opened this issue Sep 26, 2024 · 6 comments
Open

TextBox PlaceholderText is no longer centered correctly in v1.6.0 #10014

Balkoth opened this issue Sep 26, 2024 · 6 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@Balkoth
Copy link

Balkoth commented Sep 26, 2024

Describe the bug

In WindowsAppSDK 1.5 <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240802000" /> it looks correct like this:
image

In v1.6 <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240829007" /> it suddenly looks like this:
image

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

Steps to reproduce the bug

<Window
  x:Class="TextBoxTest.MainWindow"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:local="using:TextBoxTest"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d">

  <StackPanel
    HorizontalAlignment="Center"
    VerticalAlignment="Center"
    Orientation="Horizontal">
    <TextBox PlaceholderText="Search..." />
    <Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
  </StackPanel>
</Window>

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

@Balkoth Balkoth added the bug Something isn't working label Sep 26, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Sep 26, 2024
@Balkoth
Copy link
Author

Balkoth commented Oct 10, 2024

Not fixed.

@Balkoth
Copy link
Author

Balkoth commented Oct 14, 2024

Does anyone even care? This breaks the whole styling and makes the app look ugly now.

@Trix07
Copy link

Trix07 commented Oct 28, 2024

I just got around to updating our application from 1.5.7 to 1.6.1 and immediately noticed the same issue. The CheckBox control also seems to be affected, as it displays the content at the top instead of centering it vertically.

Image

Have you found any workarounds for this issue?

@Balkoth
Copy link
Author

Balkoth commented Oct 28, 2024

Unfortunately not. Are you too on Windows 10?

@Trix07
Copy link

Trix07 commented Oct 28, 2024

Yeah, I'm still on Windows 10. I tested it on a Windows 11 machine, and it works fine there, so it seems to be an issue only affecting Windows 10 machines.

@Balkoth
Copy link
Author

Balkoth commented Oct 28, 2024

Thought so...

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

2 participants