-
Notifications
You must be signed in to change notification settings - Fork 701
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 issue where pips pagers crash when the next or previous arrow button is clicked in RTL flow direction #6607
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
tb.Toggle(); | ||
Wait.ForIdle(); | ||
} | ||
} | ||
|
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.
Is this used anywhere? #Closed
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.
🕐
using (var setup = new TestSetupHelper("PipsPager Tests")) | ||
{ | ||
elements = new PipsPagerElements(); | ||
TestSetupHelper.SetInnerFrameFlowDirection(FlowDirection.RightToLeft); |
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.
@kmahone here #Closed
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.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
FontIcon has code in it that sets a render transform on itself when the flow direction is RTL and the MirroredWhenRIghtToLeft is set to true, in order to mirror the icon using a -1 x-dimension scale. However the PipsPagerNavigationButtonBaseStyle sets a scale transform on the font icon in order to decrease the size of the icon in the pressed state. This is done by referencing the scale transform by name. However the font icon code is overriding the named scale transform with an unnammed one, resulting in a crash when the storyboard tries to reference the named scale transform. We could work around this by referencing the scale transform by property rather than by name, but then we would need to manage the mirrored when RTL scale of -1 ourselves. Instead I've separated the two scale transforms.