xamarin/Xamarin.Forms
[Bug] AbsoluteLayout and RelativeLayout is expanding beyond its child Image
开放
#6,177 创建于 2019年5月12日
a/layoute/6 :clock6:help wantedt/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Description
I need to display some controls on an Image. So, I need to put image inside RelativeLayout or AbsoluteLayout. But both of these layouts expand beyond the Image. This causes wastage of space. RelativeLayout is taking even more space than AbsoluteLayout. These Layout should adapt according to the size of its children. Exactly as StackLayout.
Steps to Reproduce
Swap RelativeLayout and AbsoluteLayout in my repro project.
Basic Information
- Version with issue: Xamarin.Forms-pre10
- IDE:Visual Studio for Mac
- Affected Devices:iOS and Android.