Skip to content

fix: Align the core measure logic more with Windows - #13391

Merged
MartinZikmund merged 29 commits into
unoplatform:masterfrom
Youssef1313:fix-measure-behavior
Sep 8, 2023
Merged

MartinZikmund merged 29 commits into
unoplatform:masterfrom
Youssef1313:fix-measure-behavior

Conversation

@Youssef1313

@Youssef1313 Youssef1313 commented Aug 24, 2023 •

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): closes #

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

Copilot Summary

🤖 Generated by Copilot at 39d1fab

This pull request enhances the layout system of FrameworkElement by enforcing the minimum and maximum size constraints and the margin size. It also adds and updates some unit tests to verify the layout behavior and fix some platform-specific issues. The main files affected are Layouter.cs, FrameworkElement.Layout.crossruntime.cs, and Given_FrameworkElement.cs.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@Youssef1313
Youssef1313 force-pushed the fix-measure-behavior branch from 7dd9a6d to 39d1fab Compare August 25, 2023 06:37

@dr1rrb dr1rrb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As long as CI is green, LGTM ... but @carldebilly might have an opinion on this :)

@Youssef1313

Copy link
Copy Markdown
Member Author

As long as CI is green, LGTM ... but @carldebilly might have an opinion on this :)

I don't think it will get green 😕
This will probably require more changes.

@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Aug 25, 2023
@Youssef1313

Youssef1313 commented Aug 25, 2023 •

Copy link
Copy Markdown
Member Author

There was unit test failures. I checked the behavior on WinUI, and these tests were asserting the wrong thing. It should hopefully be green this time.

@github-actions github-actions Bot added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia labels Aug 26, 2023
@Youssef1313
Youssef1313 force-pushed the fix-measure-behavior branch 6 times, most recently from f9d3acf to e805172 Compare August 28, 2023 06:21
@Youssef1313
Youssef1313 marked this pull request as draft August 28, 2023 06:31
auto-merge was automatically disabled August 28, 2023 06:31

Pull request was converted to draft

@Youssef1313
Youssef1313 force-pushed the fix-measure-behavior branch from e805172 to 1dd5035 Compare August 28, 2023 06:53
@Youssef1313
Youssef1313 marked this pull request as ready for review August 28, 2023 06:53
@github-actions github-actions Bot added the platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform label Aug 28, 2023
@Youssef1313 Youssef1313 added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Aug 28, 2023
@Youssef1313 Youssef1313 removed the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Sep 5, 2023
@Youssef1313
Youssef1313 force-pushed the fix-measure-behavior branch 3 times, most recently from 5d2373d to 8141d78 Compare September 5, 2023 16:43
@Youssef1313

Copy link
Copy Markdown
Member Author

Windows:

image

Skia before PR:

image

Skia after PR:

image

@Youssef1313

Copy link
Copy Markdown
Member Author

Windows:

image

Skia before PR:

image

Skia after PR:

image

@Youssef1313

Copy link
Copy Markdown
Member Author

Windows:

image

Skia before PR:

image

Skia after PR:

image

This one doesn't yet 100% match Windows, but already improved!

@Youssef1313
Youssef1313 marked this pull request as draft September 5, 2023 17:36
@Youssef1313
Youssef1313 marked this pull request as ready for review September 5, 2023 18:04
@MartinZikmund

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@MartinZikmund
MartinZikmund merged commit bfd5ab4 into unoplatform:master Sep 8, 2023
@Youssef1313
Youssef1313 deleted the fix-measure-behavior branch September 8, 2023 13:18
@jeromelaban

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/skia ✏️ Categorizes an issue or PR as relevant to Skia platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants