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

Add support for Content Alignment inside AutoSuggestBox #3383

Conversation

beervoley
Copy link
Contributor

@beervoley beervoley commented Oct 6, 2020

Description

This PR adds binding of VerticalContentAlignment and HorizontalContentAlignment to AutoSuggestBox.

Motivation and Context

This PR fixes #3284
Before, it was impossible to set the content alignment inside AutoSuggestBox using the appropriate arguments in the constructor. This PR makes it possible to set content alignment to the desired values via:

<AutoSuggestBox VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left"/>

If the user doesn't provide the content alignment values, the content will be in the left top corner of the box.

How Has This Been Tested?

Manually tested the changes (see the attached screenshot).

Screenshots (if appropriate):

Content position without providing any content alignment properties:
image

Content position with VerticalContentAlignment = "Bottom" and HorizontalContentAlignment = "Center":
image

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Oct 6, 2020
@StephenLPeters StephenLPeters added area-AutoSuggestBox team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Oct 6, 2020
@beervoley
Copy link
Contributor Author

@chingucoding @Felix-Dev added it to the default text box:)

@StephenLPeters
Copy link
Contributor

@beervoley You will need to update the visual verification files in order to resolve these test failures, reach out to me if you need help resolving that.

@beervoley
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@StephenLPeters
Copy link
Contributor

@beervoley can you merge master into this branch? that will pick up the fix for the visual verifications files that went in today then we can rerun the pipeline to get the verification files you need, and rerun with those to get a clear test pass :)

@beervoley
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@beervoley
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@beervoley
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@beervoley
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters merged commit 31ca62b into microsoft:master Dec 14, 2020
@beervoley beervoley deleted the user/vsiliush/AutoSuggestBoxTextAlignment branch December 14, 2020 22:37
@marcelwgn marcelwgn mentioned this pull request Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-AutoSuggestBox team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autosugest box unaligned text
4 participants