зеркало из https://github.com/DeGsoft/maui-linux.git
Added repro sample (#13704)
This commit is contained in:
Родитель
0b5d2eeabc
Коммит
c99c2c0833
|
@ -0,0 +1,62 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<local:TestContentPage
|
||||
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"
|
||||
mc:Ignorable="d"
|
||||
Title="Test 13684" xmlns:local="using:Xamarin.Forms.Controls"
|
||||
x:Class="Xamarin.Forms.Controls.Issues.Issue13684">
|
||||
<StackLayout>
|
||||
<Label
|
||||
Padding="12"
|
||||
BackgroundColor="Black"
|
||||
TextColor="White"
|
||||
Text="If the text of each item has two lines in addition to do tail truncation, the test has passed."/>
|
||||
<CollectionView>
|
||||
<CollectionView.ItemsSource>
|
||||
<x:Array Type="{x:Type x:String}">
|
||||
<x:String>1. Some very very very very very very very very very long text two ...</x:String>
|
||||
<x:String>2. Some very very very very very very very very very long text two ...</x:String>
|
||||
<x:String>3. Some very very very very very very very very very long text two ...</x:String>
|
||||
</x:Array>
|
||||
</CollectionView.ItemsSource>
|
||||
<CollectionView.ItemsLayout>
|
||||
<LinearItemsLayout
|
||||
Orientation="Horizontal"
|
||||
ItemSpacing="0" />
|
||||
</CollectionView.ItemsLayout>
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="170" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="170" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Ellipse
|
||||
Grid.Row="0"
|
||||
Fill="#DBEAEC"
|
||||
WidthRequest="150"
|
||||
HeightRequest="150"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center"
|
||||
Margin="15, 0, 5, 0"
|
||||
StrokeThickness="0"/>
|
||||
<Label
|
||||
Grid.Row="1"
|
||||
Text="{Binding}"
|
||||
HorizontalTextAlignment="Center"
|
||||
FontSize="20"
|
||||
VerticalOptions="Start"
|
||||
Margin="15, 0, 5, 0"
|
||||
MaxLines="2"
|
||||
LineBreakMode="TailTruncation" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</StackLayout>
|
||||
</local:TestContentPage>
|
|
@ -0,0 +1,30 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using Xamarin.Forms.CustomAttributes;
|
||||
|
||||
#if UITEST
|
||||
using Xamarin.UITest;
|
||||
using NUnit.Framework;
|
||||
using Xamarin.Forms.Core.UITests;
|
||||
#endif
|
||||
|
||||
namespace Xamarin.Forms.Controls.Issues
|
||||
{
|
||||
[Issue(IssueTracker.Github, 13684,
|
||||
"[Bug] Label: LineBreakMode incompatible with MaxLines",
|
||||
PlatformAffected.Android)]
|
||||
public partial class Issue13684 : TestContentPage
|
||||
{
|
||||
public Issue13684()
|
||||
{
|
||||
#if APP
|
||||
InitializeComponent();
|
||||
#endif
|
||||
}
|
||||
|
||||
protected override void Init()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1730,6 +1730,7 @@
|
|||
<Compile Include="$(MSBuildThisFileDirectory)Issue8701.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Issue13390.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Issue13616.xaml.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Issue13684.xaml.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Bugzilla22229.xaml">
|
||||
|
@ -2138,6 +2139,9 @@
|
|||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Issue13616.xaml">
|
||||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Issue13684.xaml">
|
||||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Bugzilla27417Xaml.xaml">
|
||||
|
|
Загрузка…
Ссылка в новой задаче