xamarin/Xamarin.Forms

Search bar width issue in horizontal stack layout iOS

開放

#3,898 建立於 2018年9月25日

 (3 則留言) (1 個反應) (0 位負責人)C# (1,926 個分叉)batch import
3.0.0e/6 :clock6:help wantedi/regressionp/iOS 🍎t/bug :bug:up-for-grabs

倉庫指標

星標
 (5,644 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南