xamarin/Xamarin.Forms

[Bug] FlexLayout does not shrink when last row of children are hidden

开放

#5,959 创建于 2019年4月19日

 (4 条评论) (3 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/flexe/4 :clock4:help wantedinactivet/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Description

Flexlayout should shrink when its children are hidden. When hiding children at the last row, flexlayout will no longer shrink.

Steps to Reproduce

Using my project that I provided

  1. Click one of the white boxes that are on the last row. (That white box is now hidden)
  2. Click on any of the white boxes to hide them. (repeat this step as many times as you like)
  3. Flexlayout (blue background) does not shrink.

Optional Steps (to see intended behavior)

  1. Restart the app or hit the reset button if the above steps were preformed.
  2. Click on any of the white boxes that are NOT in the last row to hide them. (repeat this step as many times as you like)
  3. Flexlayout (blue background) will start to shrink until there is only one row left.

Expected Behavior

As children are being hidden regardless of its position, flexlayout should shrink if there is unused space.

Actual Behavior

Hiding children in the last row, will cause flexlayout to not shrink.

Basic Information

  • Version with issue: 3.6.0.264807
  • In UWP and Android

Screenshots

When children in the last row are hidden image

When children NOT in the last row are hidden image

Reproduction Link

https://github.com/ssombat/Xamarin-Flexlayout-Issue/blob/master/App1.zip

贡献者指南