Bug 46866 - Rounding Error in AbsoluteLayout Proportional Values
Summary: Rounding Error in AbsoluteLayout Proportional Values
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Paul DiPietro [MSFT]
Depends on:
Reported: 2016-11-12 17:24 UTC by Hakan
Modified: 2017-06-20 14:55 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Hakan 2016-11-12 17:24:18 UTC
Rounding in AbsoluteLayout proportional values causes a misfit in design.
Here is the XAML:

<AbsoluteLayout x:Name="AL" Grid.Row="0" Grid.Column="0" BackgroundColor="Aqua">
      <Image x:Name="im" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="SizeProportional" Source="mainpagebanner.jpg" Aspect="Fill" ></Image>

Single pixel of Aqua color is seen below the image. When I debug the height for botoh AL and im, I see that the height of AL is 92.3 and the height of the image is rounded down to 92.
Comment 1 Paul DiPietro [MSFT] 2017-03-14 21:52:44 UTC
Would you mind possibly putting a small reproduction project together since it looks like you use a specific image? What platform/device are you trying to run the app on when this occurs, and do your results vary at all?
Comment 2 Paul DiPietro [MSFT] 2017-06-20 14:55:05 UTC
Because we have not received a reproduction, we are closing this issue. If you are still experiencing the problem on the latest prerelease or nightly build, please reopen this with a reproduction project.