xamarin/Xamarin.Forms

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

Open

#5,767 opened on Mar 30, 2019

 (1 comment) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/layoute/7 :clock7:help wantedinactivet/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

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

Contributor guide