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 issue where pips pagers crash when the next or previous arrow button is clicked in RTL flow direction #6607

Merged
merged 3 commits into from
Feb 4, 2022

Conversation

StephenLPeters
Copy link
Contributor

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.

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jan 14, 2022
@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters added area-PipsPager team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Jan 14, 2022
tb.Toggle();
Wait.ForIdle();
}
}

Copy link
Member

@kmahone kmahone Jan 27, 2022

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

Copy link
Member

@kmahone kmahone left a 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);
Copy link
Contributor Author

@StephenLPeters StephenLPeters Feb 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kmahone here #Closed

Copy link
Member

@kmahone kmahone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters merged commit e4c5d34 into main Feb 4, 2022
@StephenLPeters StephenLPeters deleted the user/stpete/PipsPagerLTR branch February 4, 2022 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-PipsPager team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants