-
Notifications
You must be signed in to change notification settings - Fork 67
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
TextView height doesn't work #138
Comments
My instinct tells me that this is related to #136. |
I saw that issue too but I didn't know if they were related, but if you say so I'll follow that issue👌🏻 Hope it will work for mine too when fixed :P |
Not reproducing on latest <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:CSharpMath.Forms;assembly=CSharpMath.Forms"
mc:Ignorable="d"
x:Class="CSharpMath.Forms.Example.Test">
<ScrollView>
<StackLayout>
<local:TextView BackgroundColor="LightSalmon" HighlightColor="LightYellow" LaTeX="L'insieme dei nu"/>
<local:TextView BackgroundColor="LightGreen" HighlightColor="LightBlue" LaTeX="L'insieme dei nu"/>
<local:TextView BackgroundColor="LightSalmon" HighlightColor="LightYellow" LaTeX="L'insieme dei num"/>
<local:TextView BackgroundColor="LightGreen" HighlightColor="LightBlue" LaTeX="L'insieme dei num"/>
<ListView
Margin="0,10,0,0"
HasUnevenRows="true"
SelectionMode="None"
VerticalOptions="Center">
<ListView.ItemsSource>
<x:Array Type="{x:Type x:Int32}">
<x:Int32>1</x:Int32>
<x:Int32>2</x:Int32>
<x:Int32>3</x:Int32>
</x:Array>
</ListView.ItemsSource>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid VerticalOptions="CenterAndExpand">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="9*" />
</Grid.ColumnDefinitions>
<CheckBox />
<local:TextView
Grid.Column="1"
FontSize="35"
LaTeX="L'insieme dei num"
TextAlignment="Left"
VerticalOptions="Center" />
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ScrollView>
</ContentPage> |
I cannot confirm this bug because I have not seen it happen yet and it is not debuggable. Try uploading a zipped file of a solution that exhibits this problem. |
Will check! |
Height issue resolved! Nice work 😁 |
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:
Expected behavior
This is the result with the text "L'insieme dei nu":
And this is the result with the text "L'insieme dei num":
The text was updated successfully, but these errors were encountered: