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

Align ActualWidth/ActualHeight behavior with WinUI #16120

Open
Youssef1313 opened this issue Apr 3, 2024 · 2 comments
Open

Align ActualWidth/ActualHeight behavior with WinUI #16120

Youssef1313 opened this issue Apr 3, 2024 · 2 comments
Assignees
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) triage/untriaged Indicates an issue requires triaging or verification

Comments

@Youssef1313
Copy link
Member

Current behavior

Currently causing a bug for ShadowContainer that's being worked-around in unoplatform/uno.toolkit.ui#1092

Expected behavior

No response

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@Youssef1313 Youssef1313 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Apr 3, 2024
@Youssef1313 Youssef1313 self-assigned this Apr 3, 2024
@Youssef1313
Copy link
Member Author

Youssef1313 commented Apr 3, 2024

For future reference, for this case when the SKXamlCanvas is reading its ActualHeight, it doesn't have a layout storage for unknown reason.

image

(This doesn't make any sense to me)

@dr1rrb
Copy link
Member

dr1rrb commented Apr 4, 2024

For future reference, for this case when the SKXamlCanvas is reading its ActualHeight, it doesn't have a layout storage for unknown reason.

image

(This doesn't make any sense to me)

My undertsanding would be if you instanciate a FrameworkElement without setting any property, and you try to get it's ActualHeight (like: var h = new FrameworkElement().ActualHeight;), we would fall in the last case.

@Youssef1313 Youssef1313 added the project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants