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

[ShadowContainer] unexpected layout behaviors #677

Open
Xiaoy312 opened this issue Jul 24, 2023 · 2 comments
Open

[ShadowContainer] unexpected layout behaviors #677

Xiaoy312 opened this issue Jul 24, 2023 · 2 comments
Labels
control/shadows kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.

Comments

@Xiaoy312
Copy link
Contributor

// TreeGraph taken on uwp (windows)
TextBox#SUT // Actual=336x55, Constraints=[0,NaN,∞]x[0,NaN,∞], HV=Stretch/Top, Foreground=#FF1C1B1F, CornerRadius=0, Margin=0, Padding=8, Opacity=1, Visibility=Visible, VisualStates=Normal|ButtonCollapsed
    ShadowContainer#RootPanel // Actual=336x55, Constraints=[0,NaN,∞]x[0,NaN,∞], HV=Stretch/Stretch, Foreground=#FF1C1B1F, CornerRadius=0, Margin=0, Padding=0, Opacity=1, Visibility=Visible
        Canvas#PART_Canvas // Actual=54x55, Constraints=[0,54,∞]x[0,55,∞], HV=Stretch/Stretch, Margin=0, Opacity=1, Visibility=Visible
            SKXamlCanvas // Actual=70x71, Constraints=[0,70,∞]x[0,71,∞], HV=Stretch/Stretch, Margin=0, Opacity=1, Visibility=Visible
            ContentPresenter // Actual=54x55, Constraints=[0,NaN,∞]x[0,NaN,∞], HV=Stretch/Stretch, Foreground=#FF1C1B1F, CornerRadius=0, Margin=0, Padding=0, Opacity=1, Visibility=Visible
                Grid#ContentPanel // Actual=54x55, Constraints=[0,NaN,∞]x[40,NaN,∞], HV=Stretch/Stretch, CornerRadius=4, Margin=0, Padding=8, Opacity=1, Visibility=Visible

PART_Canvas has a fixed size (based on its content-presenter), and doesnt stretch horizontally

@Xiaoy312 Xiaoy312 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Jul 24, 2023
@Xiaoy312
Copy link
Contributor Author

on skia.gtk, ShadowContainer inside a disabled element's template also have alignment + clipped issue:
image
image

when comparing the visual tree, we can notice that the Height and Width value are not set:
image

@Xiaoy312 Xiaoy312 changed the title [ShadowContainer] H/V-Alignment are not respected [ShadowContainer] unexpected layout behaviors Jul 25, 2023
@roubachof
Copy link
Contributor

should be fixed by: #716

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control/shadows kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

2 participants