enisn / UraniumUI

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

.NET MAUI Uranium 2.9.1 PickerField Bug on Windows #746

Open MuriloGarrido opened 3 months ago

MuriloGarrido commented 3 months ago

When I click on the PickerField for Uranium in Windows for the first time, all the options appear and occupy the entire field. However, when I click a second time, the selection area decreases in size, and I the options shows only if I click very close to the label.

First attempt (The picker shows items if you click anywhere in the PickerField.) e8Qwwa4v

Other attempts (The picker shows items if you click very close to the title. However, if you click on the title or farther away, the options do not appear.) gYhnv3kI

Xml 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" xmlns:uranium="http://schemas.enisn-projects.io/dotnet/maui/uraniumui" x:Class="MyUraniumProject.MainPage" Shell.NavBarHasShadow="True" xmlns:material="http://schemas.enisn-projects.io/dotnet/maui/uraniumui/material"

    <StackLayout Margin="20">

    <material:PickerField HorizontalOptions="FillAndExpand" ItemsSource="{Binding List}"/>
    <material:PickerField HorizontalOptions="FillAndExpand"  ItemsSource="{Binding List}"/>

</StackLayout>

`

CodeBehind `namespace MyUraniumProject { public partial class MainPage : ContentPage { public ObservableCollection List { get; set; }

    public MainPage()
    {
        InitializeComponent();

        List = new ObservableCollection<string>() { 
        "a", "b", "c", "d"
        };

        BindingContext = this;
    }

}

}`