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
<Grid> wrongly arrange <TextBlock> when hosted in a <Canvas> #3483
area/gridCategorizes an issue or PR as relevant to the Grid paneldifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't workingproject/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
changed the title [-][WASM] Grid wrongly arrange <TextBlock> when hosted in a <Canvas>[/-][+][WASM] <Grid> wrongly arrange <TextBlock> when hosted in a <Canvas>[/+]on Jul 3, 2020
After few tries on XAML Studio, here's the hyopthesis:
This occurs when the <Grid> is measured using an infinite length. It's how the <Canvas> is measuring its children.
Confirmed by replacing the <Canvas> in the repro XAML by a <StackPanel Orientation="Horizontal">: same bug.
Hypothesis: it looks like the <Grid> will translate the * sizes to Auto during the measure phase when measured using an infinite size.
On Uno, it looks like the Measure() phase is behaving like on Windows, but during the Arrange() phase, it looks like the * to Auto mode is forgot and the available size is distributed using the stars weight.
changed the title [-][WASM] <Grid> wrongly arrange <TextBlock> when hosted in a <Canvas>[/-][+]<Grid> wrongly arrange <TextBlock> when hosted in a <Canvas>[/+]on Jul 4, 2020
area/gridCategorizes an issue or PR as relevant to the Grid paneldifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't workingproject/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Activity
[-][WASM] Grid wrongly arrange <TextBlock> when hosted in a <Canvas>[/-][+][WASM] <Grid> wrongly arrange <TextBlock> when hosted in a <Canvas>[/+]carldebilly commentedon Jul 3, 2020
After few tries on XAML Studio, here's the hyopthesis:
<Grid>is measured using an infinite length. It's how the<Canvas>is measuring its children.<Canvas>in the repro XAML by a<StackPanel Orientation="Horizontal">: same bug.<Grid>will translate the*sizes toAutoduring the measure phase when measured using an infinite size.Measure()phase is behaving like on Windows, but during theArrange()phase, it looks like the * to Auto mode is forgot and the available size is distributed using the stars weight.[-][WASM] <Grid> wrongly arrange <TextBlock> when hosted in a <Canvas>[/-][+]<Grid> wrongly arrange <TextBlock> when hosted in a <Canvas>[/+]test(grid): Added sample to illustrate infinite measure bug for grid
fix(grid): Fix bug where "star" sizes where not appropriately calcula…