xamarin/Xamarin.Forms

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

Aperta

#5767 aperta il 30 mar 2019

 (1 commento) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/layoute/7 :clock7:help wantedinactivet/bug :bug:up-for-grabs

Metriche repository

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

Descrizione

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

Guida contributor