xamarin/Xamarin.Forms

Search bar width issue in horizontal stack layout iOS

Aperta

#3898 aperta il 25 set 2018

 (3 commenti) (1 reazione) (0 assegnatari)C# (1926 fork)batch import
3.0.0e/6 :clock6:help wantedi/regressionp/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor