Bug 31298 - Images are not expanding to fill container
Summary: Images are not expanding to fill container
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.4.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-06-22 15:10 UTC by christine.blanda
Modified: 2015-07-14 21:15 UTC (History)
1 user (show)

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

Test Project (260.31 KB, application/x-zip-compressed)
2015-06-22 15:11 UTC, christine.blanda

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 christine.blanda 2015-06-22 15:10:37 UTC
Images are not expanding to fill their container when the Horizontal or Vertical options are set to either:

They do expand when using FillAndExpand.

In the attached example the image should be anchored to the bottom right of the display area and expand up and to the left using the AspectFit, but it does not expand.  If the LayoutOptions are changed to FillAndExpand it does expand (but as it is no longer anchored to the bottom right of the display area)
Comment 1 christine.blanda 2015-06-22 15:11:04 UTC
Created attachment 11707 [details]
Test Project
Comment 2 Jason Smith [MSFT] 2015-07-14 21:15:30 UTC
The image wont be stretched beyond its size limits currently. The "dead space" the image consumes will however (try setting the background color). This is the current expected behavior, we may at some point add a feature to allow upscaling.