Skip to content

Flyout - set correct size in Full placement mode - #2082

Merged
mergify[bot] merged 7 commits into
masterfrom
dev/djo/flyout-fix
Nov 15, 2019
Merged

mergify[bot] merged 7 commits into
masterfrom
dev/djo/flyout-fix

Conversation

@davidjohnoliver

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): fixes #2009

  • FlyoutPresenter takes up all available size up to MaxSize when placement mode is Full
  • fix exception when MaxHeight/MaxWidth=NaN

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):

@gitpod-io

gitpod-io Bot commented Nov 13, 2019 •

Copy link
Copy Markdown

@github-actions github-actions Bot added area/automation Categorizes an issue or PR as relevant to project automation platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform labels Nov 13, 2019
Comment on lines +58 to +65
Matrix = new Matrix(
m11: 1,
m12: 0,
m21: 0,
m22: 1,
offsetX: 0, //TODO
offsetY: 0 //TODO
)

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.

TODO are not just for Offset<X|Y> ;)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fair enough, but they're TODO in that case for all platforms, not just unit tests :p

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.

No, the TransformToVisual is implemented now on iOS, Android and WASM 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Hummm right ... I thought the TransformBounds, but it's on the GeneralTransform (https://github.com/unoplatform/uno/blob/master/src/Uno.UI/UI/Xaml/Media/GeneralTransform.cs#L31) ... so it means that my next bug will be harder to fix 😥

@jeromelaban jeromelaban added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Nov 13, 2019
}
#endregion

#region HorizontalAlignment Dependency Property

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Vertical

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

@davidjohnoliver

Copy link
Copy Markdown
Contributor Author

/azp run

@unoplatform unoplatform deleted a comment from davidjohnoliver Nov 14, 2019
@unoplatform unoplatform deleted a comment from davidjohnoliver Nov 14, 2019
Set correct default values for Width, Height etc in DP rather than setting them explicitly from ctor. This allows styles to overwrite these values.
This was causing content to be measured with availableSize as NaN, in turn causing an exception to be thrown if that value was returned.
@mergify
mergify Bot merged commit 99bb081 into master Nov 15, 2019
@delete-merged-branch
delete-merged-branch Bot deleted the dev/djo/flyout-fix branch November 15, 2019 15:39
MartinZikmund added a commit that referenced this pull request Aug 14, 2026
WinUI declares Thickness.Left/Top/Right/Bottom and CornerRadius.TopLeft/
TopRight/BottomRight/BottomLeft as get+set properties over private backing
fields, and GridLength.Value/GridUnitType as get-only properties. Uno
projected all ten as public fields, and ShouldSkipSymbol muted the
mismatch. They are now properties and the mutes are gone.

Duration.TimeSpan needed nothing — it became a get-only property with BC64
and its clause was already masking nothing. GridLength's second constructor
parameter is renamed to `type`, which WinUI's signature uses and which the
blanket GridLength member-mute had been hiding.

The only in-repo writers were the two TimePicker layout paths, which built
a GridLength by mutating a `default` instance; they now construct it.

Regeneration is byte-identical and Uno.UI builds 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
WinUI declares Thickness.Left/Top/Right/Bottom and CornerRadius.TopLeft/
TopRight/BottomRight/BottomLeft as get+set properties over private backing
fields, and GridLength.Value/GridUnitType as get-only properties. Uno
projected all ten as public fields, and ShouldSkipSymbol muted the
mismatch. They are now properties and the mutes are gone.

Duration.TimeSpan needed nothing — it became a get-only property with BC64
and its clause was already masking nothing. GridLength's second constructor
parameter is renamed to `type`, which WinUI's signature uses and which the
blanket GridLength member-mute had been hiding.

The only in-repo writers were the two TimePicker layout paths, which built
a GridLength by mutating a `default` instance; they now construct it.

Regeneration is byte-identical and Uno.UI builds 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
WinUI declares Thickness.Left/Top/Right/Bottom and CornerRadius.TopLeft/
TopRight/BottomRight/BottomLeft as get+set properties over private backing
fields, and GridLength.Value/GridUnitType as get-only properties. Uno
projected all ten as public fields, and ShouldSkipSymbol muted the
mismatch. They are now properties and the mutes are gone.

Duration.TimeSpan needed nothing — it became a get-only property with BC64
and its clause was already masking nothing. GridLength's second constructor
parameter is renamed to `type`, which WinUI's signature uses and which the
blanket GridLength member-mute had been hiding.

The only in-repo writers were the two TimePicker layout paths, which built
a GridLength by mutating a `default` instance; they now construct it.

Regeneration is byte-identical and Uno.UI builds 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
WinUI declares Thickness.Left/Top/Right/Bottom and CornerRadius.TopLeft/
TopRight/BottomRight/BottomLeft as get+set properties over private backing
fields, and GridLength.Value/GridUnitType as get-only properties. Uno
projected all ten as public fields, and ShouldSkipSymbol muted the
mismatch. They are now properties and the mutes are gone.

Duration.TimeSpan needed nothing — it became a get-only property with BC64
and its clause was already masking nothing. GridLength's second constructor
parameter is renamed to `type`, which WinUI's signature uses and which the
blanket GridLength member-mute had been hiding.

The only in-repo writers were the two TimePicker layout paths, which built
a GridLength by mutating a `default` instance; they now construct it.

Regeneration is byte-identical and Uno.UI builds 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
WinUI declares Thickness.Left/Top/Right/Bottom and CornerRadius.TopLeft/
TopRight/BottomRight/BottomLeft as get+set properties over private backing
fields, and GridLength.Value/GridUnitType as get-only properties. Uno
projected all ten as public fields, and ShouldSkipSymbol muted the
mismatch. They are now properties and the mutes are gone.

Duration.TimeSpan needed nothing — it became a get-only property with BC64
and its clause was already masking nothing. GridLength's second constructor
parameter is renamed to `type`, which WinUI's signature uses and which the
blanket GridLength member-mute had been hiding.

The only in-repo writers were the two TimePicker layout paths, which built
a GridLength by mutating a `default` instance; they now construct it.

Regeneration is byte-identical and Uno.UI builds 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
WinUI declares Thickness.Left/Top/Right/Bottom and CornerRadius.TopLeft/
TopRight/BottomRight/BottomLeft as get+set properties over private backing
fields, and GridLength.Value/GridUnitType as get-only properties. Uno
projected all ten as public fields, and ShouldSkipSymbol muted the
mismatch. They are now properties and the mutes are gone.

Duration.TimeSpan needed nothing — it became a get-only property with BC64
and its clause was already masking nothing. GridLength's second constructor
parameter is renamed to `type`, which WinUI's signature uses and which the
blanket GridLength member-mute had been hiding.

The only in-repo writers were the two TimePicker layout paths, which built
a GridLength by mutating a `default` instance; they now construct it.

Regeneration is byte-identical and Uno.UI builds 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
WinUI declares Thickness.Left/Top/Right/Bottom and CornerRadius.TopLeft/
TopRight/BottomRight/BottomLeft as get+set properties over private backing
fields, and GridLength.Value/GridUnitType as get-only properties. Uno
projected all ten as public fields, and ShouldSkipSymbol muted the
mismatch. They are now properties and the mutes are gone.

Duration.TimeSpan needed nothing — it became a get-only property with BC64
and its clause was already masking nothing. GridLength's second constructor
parameter is renamed to `type`, which WinUI's signature uses and which the
blanket GridLength member-mute had been hiding.

The only in-repo writers were the two TimePicker layout paths, which built
a GridLength by mutating a `default` instance; they now construct it.

Regeneration is byte-identical and Uno.UI builds 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

area/automation Categorizes an issue or PR as relevant to project automation platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS 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] Flyout does not appear full screen

5 participants