Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] CollectionView GridItemLayout reverses width/height #6168

Closed
davidortinau opened this issue May 11, 2019 · 0 comments
Closed

[Bug] CollectionView GridItemLayout reverses width/height #6168

davidortinau opened this issue May 11, 2019 · 0 comments

Comments

@davidortinau
Copy link
Contributor

davidortinau commented May 11, 2019

Description

Looks like height/width are reversed in this scenario:

<CollectionView
                x:Name="LayoutsCV"
                ItemsSource="{Binding Layouts}"
                SelectedItem="{Binding SelectedControl, Mode=TwoWay}"
                SelectionMode="Single"
                SelectionChangedCommand="{Binding SelectCommand}"
                HeightRequest="200">
                <CollectionView.EmptyView>
                    <StackLayout
                        VerticalOptions="Fill"
                        BackgroundColor="Silver">
                        <Label
                            Text="Empty"
                            BackgroundColor="Red"
                            VerticalOptions="CenterAndExpand"
                            HorizontalOptions="Center" />
                    </StackLayout>
                </CollectionView.EmptyView>
                <CollectionView.ItemsLayout>
                    <GridItemsLayout
                        Span="2" 
                        Orientation="Horizontal" />
                </CollectionView.ItemsLayout>
                <CollectionView.ItemTemplate>
                    <DataTemplate>
                        <Grid
                            WidthRequest="50"
                            HeightRequest="120"
                            BackgroundColor="White"
                            Padding="10">
                                <Frame Visual="Material">
                                    <Label
                                        FontSize="14"
                                        LineBreakMode="NoWrap"
                                        Text="{Binding Title}"
                                        d:Text="Something Else" />
                                </Frame>
                        </Grid>
                    </DataTemplate>
                </CollectionView.ItemTemplate>
            </CollectionView>

Basic Information

  • Version with issue: 4.0.1
    • iOS: 12.3

Screenshots

Screenshot 2019-05-10 17 00 36

@davidortinau davidortinau added t/bug 🐛 a/collectionview s/unverified New report that has yet to be verified labels May 11, 2019
@pauldipietro pauldipietro added this to New in Triage May 11, 2019
@samhouts samhouts removed the s/unverified New report that has yet to be verified label May 11, 2019
@samhouts samhouts moved this from New to Needs Estimate in Triage May 11, 2019
@samhouts samhouts added the e/2 🕑 2 label May 11, 2019
@samhouts samhouts moved this from Needs Estimate to Ready For Work in Triage May 14, 2019
hartez added a commit that referenced this issue May 16, 2019
@samhouts samhouts added this to In Progress in v4.0.0 May 17, 2019
Triage automation moved this from Ready For Work to Closed May 20, 2019
v4.0.0 automation moved this from In Progress to Done May 20, 2019
@samhouts samhouts removed this from Closed in Triage May 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
v4.0.0
  
Done
Development

No branches or pull requests

3 participants