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

Row height issue #35

Closed
daviddotmac opened this issue Nov 1, 2016 · 3 comments
Closed

Row height issue #35

daviddotmac opened this issue Nov 1, 2016 · 3 comments

Comments

@daviddotmac
Copy link

Hi Daniel,

Having a little issue with height of rows in the FlowListView plugin.

Here is my XAML.

`

<flv:FlowListView FlowItemsSource="{Binding Listings2}" HasUnevenRows="True" RowHeight="-1">


  <flv:FlowListView.FlowColumnTemplate>
    <DataTemplate>
      
      <Label VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" LineBreakMode="WordWrap" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit."></Label>
      
    </DataTemplate>
    
  </flv:FlowListView.FlowColumnTemplate>

</flv:FlowListView>`

Unfortunately when viewing this in android all i get is the first word displayed repeatedly. I had hoped setting unevenrows to true and rowheight to -1 that these would stretch automatically. Am I missing something obvious?

Here is a screenshot of the output.

Thanks,
Dave.

lorem

@daviddotmac
Copy link
Author

I have noticed on other issues that seem to match #17 and #16 you say "You just need to set correct HorizontalOptions and VerticalOptions layout flags on a main cell view. " could you please give me a pointer as to where in my code to put these? I have tried on every element in the XAML above pretty much, but to no avail.

I do notice that if I set a widthRequest on the label this fixes it, but I'm hoping to put this on different device widths so was reluctant to start hard coding widths,

Thanks,
Dave.

@daniel-luberda
Copy link
Owner

It should be possible with 2.0.1 which uses Grid internally. Old behavior can be enabled back with FlowUseAbsoluteLayoutInternally parameter.

@daviddotmac
Copy link
Author

Made absolutely no changes other than updating to 2.0.1 and it worked! Thanks very much! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants