Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[Controls] Add reproduction case for issue #2139
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Aug 29, 2018
1 parent 9c65cad commit 9d6ff68
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,21 @@ protected override void Init()
layout1.Children.Add(new Label { Text = "Horizontal" });
layout1.Children.Add(searchBar1);

var searchBar2 = new SearchBar
{
BackgroundColor = Color.Blue,
Text = "i m with expand",
HorizontalOptions = LayoutOptions.CenterAndExpand,
AutomationId = "srb_grid"
};

var grid = new Grid();
grid.Children.Add(layout);
Grid.SetRow(layout, 0);
grid.Children.Add(layout1);
Grid.SetRow(layout1, 1);
grid.Children.Add(searchBar2);
Grid.SetRow(searchBar2, 2);
Content = grid;
}

Expand Down

0 comments on commit 9d6ff68

Please sign in to comment.