Skip to content

Restore check for Visibility in Layouter.MeasureChild - #2089

Merged
davidjohnoliver merged 2 commits into
masterfrom
dev/djo/progressring-android-fix-2
Nov 15, 2019
Merged

davidjohnoliver merged 2 commits into
masterfrom
dev/djo/progressring-android-fix-2

Conversation

@davidjohnoliver

Copy link
Copy Markdown
Contributor

This is required to correctly handle collapsed IFrameworkElement children that don't have their own Layouter (eg ProgressRing on Android).

GitHub Issue (If applicable): fixes #2073

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

This is required to correctly handle collapsed IFrameworkElement children that don't have their own Layouter (eg ProgressRing on Android).
@gitpod-io

gitpod-io Bot commented Nov 14, 2019

Copy link
Copy Markdown

@github-actions github-actions Bot added the platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform label Nov 14, 2019

@carldebilly carldebilly 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.

Seems legit change.

@jeromelaban

Copy link
Copy Markdown
Member

@carldebilly do you remember why you removed it ?

@jeromelaban jeromelaban added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Nov 15, 2019
@davidjohnoliver

Copy link
Copy Markdown
Contributor Author

@carldebilly do you remember why you removed it ?

It was moved from MeasureChild() to Measure() and I suspect the edge case (parent has a Layouter, child doesn't) just wasn't considered.

@davidjohnoliver
davidjohnoliver merged commit 9a15dd5 into master Nov 15, 2019
@davidjohnoliver
davidjohnoliver deleted the dev/djo/progressring-android-fix-2 branch November 15, 2019 13:48
MartinZikmund added a commit that referenced this pull request Aug 14, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with
Uno-only delegate types that return zero hits across the whole WinAppSDK
2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching
WinUI, and the four Window*EventHandler delegates are gone (Closed already
used TypedEventHandler and was only being masked for free).

VisibilityChanged also carried the wrong payload: Windows.UI.Core's
VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs.
That type is now hand-written, which retires its NotImplemented stub;
CoreWindow keeps receiving the Windows.UI.Core args it expects.

The name-keyed bypass in AreEventsMatching is removed. Note the matcher
compares only the type name for generics and never recurses into type
arguments, so it cannot police a TypedEventHandler's payload — the args
type here was reviewed by hand.

Regeneration changes exactly one file: WindowVisibilityChangedEventArgs
flips from a live __SKIA__ NotImplemented stub to "already declared".
Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund added a commit that referenced this pull request Aug 20, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with
Uno-only delegate types that return zero hits across the whole WinAppSDK
2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching
WinUI, and the four Window*EventHandler delegates are gone (Closed already
used TypedEventHandler and was only being masked for free).

VisibilityChanged also carried the wrong payload: Windows.UI.Core's
VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs.
That type is now hand-written, which retires its NotImplemented stub;
CoreWindow keeps receiving the Windows.UI.Core args it expects.

The name-keyed bypass in AreEventsMatching is removed. Note the matcher
compares only the type name for generics and never recurses into type
arguments, so it cannot police a TypedEventHandler's payload — the args
type here was reviewed by hand.

Regeneration changes exactly one file: WindowVisibilityChangedEventArgs
flips from a live __SKIA__ NotImplemented stub to "already declared".
Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund added a commit that referenced this pull request Aug 21, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with
Uno-only delegate types that return zero hits across the whole WinAppSDK
2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching
WinUI, and the four Window*EventHandler delegates are gone (Closed already
used TypedEventHandler and was only being masked for free).

VisibilityChanged also carried the wrong payload: Windows.UI.Core's
VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs.
That type is now hand-written, which retires its NotImplemented stub;
CoreWindow keeps receiving the Windows.UI.Core args it expects.

The name-keyed bypass in AreEventsMatching is removed. Note the matcher
compares only the type name for generics and never recurses into type
arguments, so it cannot police a TypedEventHandler's payload — the args
type here was reviewed by hand.

Regeneration changes exactly one file: WindowVisibilityChangedEventArgs
flips from a live __SKIA__ NotImplemented stub to "already declared".
Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund added a commit that referenced this pull request Aug 22, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with
Uno-only delegate types that return zero hits across the whole WinAppSDK
2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching
WinUI, and the four Window*EventHandler delegates are gone (Closed already
used TypedEventHandler and was only being masked for free).

VisibilityChanged also carried the wrong payload: Windows.UI.Core's
VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs.
That type is now hand-written, which retires its NotImplemented stub;
CoreWindow keeps receiving the Windows.UI.Core args it expects.

The name-keyed bypass in AreEventsMatching is removed. Note the matcher
compares only the type name for generics and never recurses into type
arguments, so it cannot police a TypedEventHandler's payload — the args
type here was reviewed by hand.

Regeneration changes exactly one file: WindowVisibilityChangedEventArgs
flips from a live __SKIA__ NotImplemented stub to "already declared".
Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund added a commit that referenced this pull request Aug 28, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with
Uno-only delegate types that return zero hits across the whole WinAppSDK
2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching
WinUI, and the four Window*EventHandler delegates are gone (Closed already
used TypedEventHandler and was only being masked for free).

VisibilityChanged also carried the wrong payload: Windows.UI.Core's
VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs.
That type is now hand-written, which retires its NotImplemented stub;
CoreWindow keeps receiving the Windows.UI.Core args it expects.

The name-keyed bypass in AreEventsMatching is removed. Note the matcher
compares only the type name for generics and never recurses into type
arguments, so it cannot police a TypedEventHandler's payload — the args
type here was reviewed by hand.

Regeneration changes exactly one file: WindowVisibilityChangedEventArgs
flips from a live __SKIA__ NotImplemented stub to "already declared".
Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund added a commit that referenced this pull request Aug 28, 2026
The Window event retypes and the WinRT struct/member projection fixes
(#2082, #2089) are user-facing breaking changes with no entry in the 7.0
migration guide, which carries one per BC.

- Public API removed: the four Window*EventHandler delegates, plus the
  Window.VisibilityChanged payload retype from Windows.UI.Core's
  VisibilityChangedEventArgs to WinUI's WindowVisibilityChangedEventArgs.
- New "WinRT projection alignment" section: Thickness/CornerRadius fields
  to properties, GridLength read-only members and its renamed ctor
  parameter, DataTemplate.LoadContent returning DependencyObject, and
  GuidHelper.Equals taking `in`.
- Checklist item for the VisibilityChanged handler retype.

markdownlint and cspell 8.3.2 pass on the file.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014YcPxHioM9n92waPX8i1LR
MartinZikmund added a commit that referenced this pull request Aug 29, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with
Uno-only delegate types that return zero hits across the whole WinAppSDK
2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching
WinUI, and the four Window*EventHandler delegates are gone (Closed already
used TypedEventHandler and was only being masked for free).

VisibilityChanged also carried the wrong payload: Windows.UI.Core's
VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs.
That type is now hand-written, which retires its NotImplemented stub;
CoreWindow keeps receiving the Windows.UI.Core args it expects.

The name-keyed bypass in AreEventsMatching is removed. Note the matcher
compares only the type name for generics and never recurses into type
arguments, so it cannot police a TypedEventHandler's payload — the args
type here was reviewed by hand.

Regeneration changes exactly one file: WindowVisibilityChangedEventArgs
flips from a live __SKIA__ NotImplemented stub to "already declared".
Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund added a commit that referenced this pull request Aug 29, 2026
The Window event retypes and the WinRT struct/member projection fixes
(#2082, #2089) are user-facing breaking changes with no entry in the 7.0
migration guide, which carries one per BC.

- Public API removed: the four Window*EventHandler delegates, plus the
  Window.VisibilityChanged payload retype from Windows.UI.Core's
  VisibilityChangedEventArgs to WinUI's WindowVisibilityChangedEventArgs.
- New "WinRT projection alignment" section: Thickness/CornerRadius fields
  to properties, GridLength read-only members and its renamed ctor
  parameter, DataTemplate.LoadContent returning DependencyObject, and
  GuidHelper.Equals taking `in`.
- Checklist item for the VisibilityChanged handler retype.

markdownlint and cspell 8.3.2 pass on the file.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014YcPxHioM9n92waPX8i1LR
MartinZikmund added a commit that referenced this pull request Sep 1, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with
Uno-only delegate types that return zero hits across the whole WinAppSDK
2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching
WinUI, and the four Window*EventHandler delegates are gone (Closed already
used TypedEventHandler and was only being masked for free).

VisibilityChanged also carried the wrong payload: Windows.UI.Core's
VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs.
That type is now hand-written, which retires its NotImplemented stub;
CoreWindow keeps receiving the Windows.UI.Core args it expects.

The name-keyed bypass in AreEventsMatching is removed. Note the matcher
compares only the type name for generics and never recurses into type
arguments, so it cannot police a TypedEventHandler's payload — the args
type here was reviewed by hand.

Regeneration changes exactly one file: WindowVisibilityChangedEventArgs
flips from a live __SKIA__ NotImplemented stub to "already declared".
Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund added a commit that referenced this pull request Sep 1, 2026
The Window event retypes and the WinRT struct/member projection fixes
(#2082, #2089) are user-facing breaking changes with no entry in the 7.0
migration guide, which carries one per BC.

- Public API removed: the four Window*EventHandler delegates, plus the
  Window.VisibilityChanged payload retype from Windows.UI.Core's
  VisibilityChangedEventArgs to WinUI's WindowVisibilityChangedEventArgs.
- New "WinRT projection alignment" section: Thickness/CornerRadius fields
  to properties, GridLength read-only members and its renamed ctor
  parameter, DataTemplate.LoadContent returning DependencyObject, and
  GuidHelper.Equals taking `in`.
- Checklist item for the VisibilityChanged handler retype.

markdownlint and cspell 8.3.2 pass on the file.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014YcPxHioM9n92waPX8i1LR
@github-actions github-actions Bot mentioned this pull request Sep 2, 2026
4 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android][iOS] Extra Space in TextBox measure

3 participants