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

Fix Listbox text truncation when text is scaled up #1397

Merged
merged 3 commits into from
Nov 3, 2023

Conversation

christineyan4
Copy link
Collaborator

Description

This change updates the Width set on ListBox to be MinWidth instead.

Motivation and Context

This fixes an accessibility issue in WinUI3 Gallery, where ListBox would truncate longer text when text scaling is sized up.

How Has This Been Tested?

Ad-hoc testing

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@christineyan4 christineyan4 merged commit 10e7665 into main Nov 3, 2023
2 checks passed
@karkarl karkarl deleted the user/christineyan/listbox-text-scaling branch February 12, 2024 23:50
karkarl pushed a commit that referenced this pull request Jul 15, 2024
## Description
This change updates the Width set on ListBox to be MinWidth instead.

## Motivation and Context
This fixes an accessibility issue in WinUI3 Gallery, where ListBox would
truncate longer text when text scaling is sized up.

## How Has This Been Tested?
Ad-hoc testing

## Screenshots (if appropriate):

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)

---------

Co-authored-by: Christine Yan <christineyan@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants