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

[iOS] Simplify the code used to set the same font size for Editor/Entry. #13150

Merged
merged 4 commits into from
Feb 7, 2023

Conversation

mandel-macaque
Copy link
Member

PR #13140 landed with a property implementation that is more complicatd than needed (also a little unsafe).

Changes in this PR:

  1. Use a nullable nfloat to ensure that we do not use a magic number as the default value of the variable.
  2. Simplify the if nests. There is no needed to have that many nested code to achiecve the same. This implementation does the same with a much simpler approach.

Please follow the logic of the changes in the comment review I gave to the original PR: #13140 (review)

PR #13140 landed with a property
implementation that is more complicatd than needed (also a little
unsafe).

Changes in this PR:

1. Use a nullable nfloat to ensure that we do not use a magic number as
   the default value of the variable.
2. Simplify the if nests. There is no needed to have that many nested
   code to achiecve the same. This implementation does the same with a
   much simpler approach.
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@rmarinho rmarinho enabled auto-merge February 7, 2023 11:33
@rmarinho rmarinho merged commit 2cba96c into main Feb 7, 2023
@rmarinho rmarinho deleted the dev/madel/simplify-safer-code branch February 7, 2023 12:51
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 10, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
@samhouts samhouts added the fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants