Skip to content

Commit

Permalink
Expand PickerField width inside InputField
Browse files Browse the repository at this point in the history
  • Loading branch information
enisn committed Apr 3, 2024
1 parent c41f20a commit ac41585
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/UraniumUI.Material/Controls/PickerField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public class PickerField : InputField
public override View Content { get; set; } = new PickerView
{
VerticalOptions = LayoutOptions.Center,
HorizontalOptions = LayoutOptions.Fill,
Margin = new Thickness(15, 0),
#if WINDOWS
Opacity = 0,
Expand Down Expand Up @@ -87,7 +86,7 @@ public PickerField()
protected override void OnSizeAllocated(double width, double height)
{
base.OnSizeAllocated(width, height);
PickerView.WidthRequest = width * .5; // TODO:Make this value dynamic later.
PickerView.WidthRequest = (width * .96f) - (AllowClear ? iconClear.Width : 0) - (imageIcon.IsValueCreated ? imageIcon.Value.Width : 0); // TODO:Make this value dynamic later.
}
#endif

Expand Down

0 comments on commit ac41585

Please sign in to comment.