You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Skia] Shapes arrange appear to be broken in certain cases #18265
area/skia ✏️Categorizes an issue or PR as relevant to Skiadifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugSomething isn't workinglow-hanging-🍒Categorizes an issue that might be a quick win with meaningful positive impact.project/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)project/shapes-brushes 🔶Categorizes an issue or PR as relevant to shapes and brushes
In Shape.layout.cs, for the UniformToFill stretch case, the code must change for return new Size(width, height) to return new Size(width, width). Include a comment that explains this:
// Yes, it's intentional for this to be width, width.
// This is the same as WinUI is doing.
// The reasoning for this is if you have some code like:
//
// <Grid Width="150" Height="150" BorderBrush="Green" BorderThickness="1">
// <Ellipse Width="300" Stretch="UniformToFill"
// HorizontalAlignment="Left" VerticalAlignment="Bottom" Fill="Red" />
// </Grid >
//
// In order to get "VerticalAlignment" working as expected, we need
// to force the height to 300
This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.
area/skia ✏️Categorizes an issue or PR as relevant to Skiadifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugSomething isn't workinglow-hanging-🍒Categorizes an issue that might be a quick win with meaningful positive impact.project/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)project/shapes-brushes 🔶Categorizes an issue or PR as relevant to shapes and brushes
Activity
Youssef1313 commentedon Sep 21, 2024
@MartinZikmund FYI, the popup opens in the wrong direction on Skia for this sample. Tracking in #18266
Youssef1313 commentedon Sep 21, 2024
I'll get this fixed in #18261
Youssef1313 commentedon Sep 21, 2024
And for future reference, the fix is this:
MartinZikmund commentedon Sep 24, 2025
In
Shape.layout.cs, for theUniformToFillstretch case, the code must change forreturn new Size(width, height)toreturn new Size(width, width). Include a comment that explains this:github-actions commentedon May 7, 2026
This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.
test: Add Skia shapes parity test vs WinUI goldens
test: Move Basic_Shapes parity goldens into runtime tests
fix: Square measure for UniformToFill shapes
fix: Square measure for UniformToFill shapes
test: Add Skia shapes parity test vs WinUI goldens
test: Move Basic_Shapes parity goldens into runtime tests