xamarin/Xamarin.Forms

AbsoluteLayout does not take the size of its children as RelativeLayout takes

Aberta

#5.767 aberto em 30 de mar. de 2019

 (1 comentário) (0 reação) (0 responsável)C# (1.926 forks)batch import
a/layoute/7 :clock7:help wantedinactivet/bug :bug:up-for-grabs

Métricas do repositório

Stars
 (5.644 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Description

I want to use Image to display data on top of it. I put image inside the AbsoluteLayout. But the AbsoluteLayout does take extra pixels around the image. Whereas using RelativeLayout does not have this issue. The issue magnify in low resolution devices.

Steps to Reproduce

swap RelativeLayout and AbsoluteLayout in the uploaded sample

Basic Information

  • Version with issue:Xamarin.Forms-pre7
  • IDE:VSMac preview
  • Affected Devices:Android and iOS

Reproduction Link

MyApp.zip

Guia do colaborador