[TIMOB-19404] Windows: ImageView Layout parity
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2015-08-27T16:10:32.000+0000 |
| Affected Version/s | Release 4.0.0 |
| Fix Version/s | Release 5.0.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Kota Iguchi |
| Assignee | Kota Iguchi |
| Created | 2015-08-25T09:11:04.000+0000 |
| Updated | 2015-09-03T22:29:37.000+0000 |
Description
Make sure
Ti.UI.ImageView layout parity. For instance, specifying Ti.UI.FILL for width & height should stretch image with size of the parent view.
var win = Ti.UI.createWindow({ backgroundColor: 'blue' });
var view = Ti.UI.createView({
backgroundColor: 'red',
width: '50%', height:'50%'
});
var imageview = Ti.UI.createImageView({
image: "http://image.tmdb.org/t/p/w780//3FweBee0xZoY77uO1bhUOlQorNH.jpg",
width: Ti.UI.FILL, height: Ti.UI.FILL
});
view.add(imageview);
win.add(view);
win.open()
Attachments
| File | Date | Size |
|---|---|---|
| imageview.png | 2015-08-25T09:10:40.000+0000 | 38773 |
https://github.com/appcelerator/titanium_mobile_windows/pull/417
Verified the fix. The Image stretches to the the size of parent view if Ti.UI.FILL is used. Closing. Environment: Appc Studio: 4.1.1.201507141126 Ti SDK: 5.0.0.v20150903105218 Ti CLI: 4.1.5 Alloy: 1.7.6 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.2.0-1 APPC CLI: 5.0.0-33 Node : v0.10.37 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1
Verified using: Windows 8.1 Appc CLI Core: 5.0.0-33 Appc CLI NPM: 4.2.0-1 Titanium SDK: 5.0.0.v20150902095518 Nokia Lumia 930 8.1 When specifying TI.UI.FILL the image is stretched to fit the size of the parent Closing ticket