Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19404] Windows: ImageView Layout parity

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-08-27T16:10:32.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sRelease 5.0.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-08-25T09:11:04.000+0000
Updated2015-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

FileDateSize
imageview.png2015-08-25T09:10:40.000+000038773

Comments

  1. Kota Iguchi 2015-08-26

    https://github.com/appcelerator/titanium_mobile_windows/pull/417
  2. Lokesh Choudhary 2015-09-03

    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
  3. Ewan Harris 2015-09-03

    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

JSON Source