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

Account for margins on sizes returned from Editor #20249

Merged
merged 10 commits into from
Feb 5, 2024

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Jan 30, 2024

Description of Change

The Editor control short circuits measuring itself if the user has set EditorAutoSizeOption to Disabled. This ensures that the editor always retains the initial height it was measured with as the user types. The code that was short circuiting the measure wasn't including the margins with the returned size which was causing an infinite loop of confusion as the calling code expected the return value to have margins on it.

Issues Fixed

Fixes #20126

Need to verify if this fixes
#17757

@PureWeen PureWeen marked this pull request as ready for review January 30, 2024 23:52
@PureWeen PureWeen requested a review from a team as a code owner January 30, 2024 23:52
@PureWeen PureWeen requested review from mattleibow and rmarinho and removed request for a team January 30, 2024 23:52
@PureWeen PureWeen marked this pull request as draft January 31, 2024 00:57
src/Controls/src/Core/Editor/Editor.cs Outdated Show resolved Hide resolved
src/Controls/src/Core/Editor/Editor.cs Outdated Show resolved Hide resolved
@PureWeen PureWeen marked this pull request as ready for review January 31, 2024 14:07
@samhouts samhouts added legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-controls-editor Editor labels Jan 31, 2024
@PureWeen
Copy link
Member Author

PureWeen commented Feb 5, 2024

UI Test failures are unrelated and being resolved by other PRs

@rmarinho rmarinho merged commit 5dec41b into release/8.0.1xx-sr2 Feb 5, 2024
6 of 7 checks passed
@rmarinho rmarinho deleted the fix_20126 branch February 5, 2024 14:07
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2024
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 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.

None yet

5 participants