xamarin/Xamarin.Forms

Long text in Label inside StackLayout inside AbsoluteLayout results in a out of container drawing.

開放

#7,819 建立於 2019年10月4日

 (3 則留言) (1 個反應) (0 位負責人)C# (1,926 個分叉)batch import
a/layoute/3 :clock3:help wantedp/Androidp/iOS 🍎t/bug :bug:up-for-grabs

倉庫指標

星標
 (5,644 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Description

Suppose master Label lies inside StackLayout inside AbsoluteLayout. If I change text from short to long in Label it does change size but moves other children to draw outside of container (or container does not resize correctly). Although adding additional children to parent container or changing button size produce correct results.

Steps to Reproduce

  1. Use application from Reproduction Link
  2. Change text to long\short
  3. Add one or more buttons
  4. Enlarge first button

Expected Behavior

Height of Label with multiline text scales its parent container correctly.

Actual Behavior

I don't think it is suppose to work like that.

Basic Information

  • Version with issue: 4.2.0.848062
  • Last known good version: unknown
  • IDE: Microsoft Visual Studio Community 16.3.2
  • Platform Target Frameworks:
    • iOS: Default
    • Android: 9.0
  • Android Support Library Version:
  • Nuget Packages:
    • NETStandard.Library v2.0.3
    • Xamarin.Forms v4.2.0.848062
  • Affected Devices:
    • Android Emulator
    • iPhone Simulator

Screenshots

Android

iOS

Reproduction Link

Application uses color coded visual elements backgrounds with round corners to ease debugging. Github

貢獻者指南