Skip to content

TextView height doesn't work  #138

@BenjaNapo

Description

@BenjaNapo

Describe the bug

TextView height is not set properly based on text length, indeed it change drastically just adding a single character

To Reproduce

I created two ListView with just one char of difference in this way:

                <ListView
                    Margin="0,10,0,0"
                    HasUnevenRows="true"
                    ItemTapped="ListView_ItemTapped"
                    ItemsSource="{Binding DomandaAttuale.Risposte}"
                    SelectionMode="None"
                    VerticalOptions="Center">
                    <ListView.ItemTemplate>
                        <DataTemplate>
                            <ViewCell>
                                <Grid VerticalOptions="CenterAndExpand">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="1*" />
                                        <ColumnDefinition Width="9*" />
                                    </Grid.ColumnDefinitions>
                                    <ia:Checkbox
                                        FillColor="{DynamicResource PrimaryColor}"
                                        IsChecked="{Binding Selezionata}"
                                        IsCheckedChanged="Checkbox_IsCheckedChanged"
                                        OutlineColor="{DynamicResource PrimaryColor}"
                                        Shape="Circle" />
                                    <math:TextView
                                        Grid.Column="1"
                                        FontSize="35"
                                        LaTeX="L'insieme dei nu"
                                        TextAlignment="Left"
                                        VerticalOptions="Center" />
                                </Grid>
                            </ViewCell>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>

Expected behavior

This is the result with the text "L'insieme dei nu":
Screenshot_1592831636 (2)

And this is the result with the text "L'insieme dei num":
Screenshot_1592831650 (2)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions