xamarin/Xamarin.Forms

Search bar width issue in horizontal stack layout iOS

Open

#3,898 opened on Sep 25, 2018

 (3 comments) (1 reaction) (0 assignees)C# (1,926 forks)batch import
3.0.0e/6 :clock6:help wantedi/regressionp/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

When adding a horizontal stack layout and adding a search bar and another control side by side, the search bar takes the whole width of the screen and the other control does not render. This is using Xam Forms 3.0.2.839982.

There is also another bug where if you put a height request on the stack layout that contains the search bar, the search bar does not render.

Steps to Reproduce

  1. Create a horizontal stack layout with a search bar and button side by side
  2. Run app, button is not visible
  3. Also add a height request to the stack layout. Now, search bar is not visible

Expected Behavior

The search bar and button should both be visible side by side

Actual Behavior

The button is not visible

Basic Information

  • Version with issue: 3.0.2.839982
  • Last known good version: Unknown
  • IDE: VS for Mac
  • Platform Target Frameworks:
    • iOS: 11.4
    • Android: na
    • UWP: na
  • Android Support Library Version: na
  • Nuget Packages: Xamarin Forms
  • Affected Devices: iOS

Screenshots

Reproduction Link

Searchbar_Issue.zip

Contributor guide