Skip to content

Comments

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

Merged
rmarinho merged 4 commits intomainfrom
dev/madel/simplify-safer-code
Feb 7, 2023
Merged

[iOS] Simplify the code used to set the same font size for Editor/Entry.#13150
rmarinho merged 4 commits intomainfrom
dev/madel/simplify-safer-code

Conversation

@mandel-macaque
Copy link
Contributor

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.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants