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
[Android] Entry & Picker VerticalTextAlignment ignored #21966
base: main
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
{ | ||
if (PlatformView != null && VirtualView != null) | ||
{ | ||
PlatformView.SetHeight(PlatformView.Height); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand what this line is doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is a strange one, but it fixes it. For some reason, these heights have different values
if (PlatformView != null && VirtualView != null) | ||
{ | ||
PlatformView.SetHeight(PlatformView.Height); | ||
PlatformView.UpdateVerticalTextAlignment(VirtualView); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of calling the Update directly, can you rather invoke the mapper? This way if someone overrides the mapper, their code still gets called.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Updated test snapshot. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Issues Fixed
Fixes #21717