enisn / UraniumUI

Uranium is a Free & Open-Source UI Kit for MAUI.
Apache License 2.0
1.17k stars 142 forks source link

EditorField hangs when typing on windows plateform #622

Closed sly13010 closed 6 months ago

sly13010 commented 8 months ago

here is my code:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MauiTreeUranium.View.NewPage1"
             xmlns:material="http://schemas.enisn-projects.io/dotnet/maui/uraniumui/material"
             xmlns:m="clr-namespace:UraniumUI.Icons.MaterialIcons;assembly=UraniumUI.Icons.MaterialIcons"
             Title="NewPage1"
             BackgroundColor="Transparent">

    <VerticalStackLayout VerticalOptions="Center" HorizontalOptions="Center"  >
        <Border Padding="0" 

        Stroke="Transparent"
        BackgroundColor="White"
        StrokeShape="RoundRectangle 10">
            <Border.Shadow>
                <Shadow Brush="Black"
                Offset="1,1"
                Opacity=".8"/>
            </Border.Shadow>

            <Grid RowDefinitions="40,500,60"  >
                <VerticalStackLayout Grid.Row="0">
                    <Label Text="Editer une ressource" FontSize="Medium" Margin="5,5,0,2" />
                    <Border BackgroundColor="LightGray"/>
                </VerticalStackLayout>
                <VerticalStackLayout Grid.Row="1">
                    <material:TextField Title="Name" x:Name="Name" WidthRequest="270"  />
                    <material:EditorField Title="Description" x:Name="Description" WidthRequest="270"/>
                </VerticalStackLayout>

                <Border Grid.Row="2" BackgroundColor="LightGrey" Margin="0,5,0,0">
                    <Button  Text="ok" Clicked="Button_Clicked" WidthRequest="100" Margin="0,7,0,10"/>
                </Border>
            </Grid>
        </Border>
    </VerticalStackLayout>

</ContentPage>

when I enter in the editor the text hangs on line break and I have to use the mouse to click and continue.

And the result

uranium

DevFromDownUnder commented 8 months ago

Haven't tested but may have been fixed in #627