Skip to content

Commit

Permalink
Merge pull request #642 from enisn/pickerfield-expand
Browse files Browse the repository at this point in the history
Expanding Pickerfield
  • Loading branch information
enisn committed Apr 3, 2024
2 parents c41f20a + 1016e47 commit 4127aa6
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.MinimumWidthRequest = (width * .96f) - (AllowClear ? iconClear.Width : 0) - (imageIcon.IsValueCreated ? imageIcon.Value.Width : 0);
}
#endif

Expand Down

0 comments on commit 4127aa6

Please sign in to comment.