Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6699] Android: ImageView added to window with no height/width specified does not scale to window (parity bug)

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2012-05-04T11:19:20.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2012-05, Release 2.0.0
ComponentsAndroid
Labelsparity, qe-testadded
ReporterBill Dawson
AssigneeBill Dawson
Created2011-12-15T11:53:27.000+0000
Updated2012-05-04T11:19:20.000+0000

Description

Fail Case / Test Case

1. Create a new app. 2. Replace the new app's app.js with the one here below. 3. Run the app.

Symptom

When the app window opens, it'll just get the small KS_nav_ui.png image on it (in the fail case -- if you're testing the fix, you should see the image expanded and scaled to the window.) In iOS, if you run this app, it will expand/scale to the window.
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({  
    title:'Test',
    backgroundColor:'#000',
	exitOnClose: true
});

win.add(Ti.UI.createImageView({
	image: "KS_nav_ui.png"
}));


win.open();

Comments

  1. Allen Yeung 2012-03-20

    Going to resolve this since the behavior in iOS now matches android. Neither iOS or android expand/stretch the icon now.
  2. Natalie Huynh 2012-03-21

    Tested with 2.0.0.v20120321071752 on Motorola Xoom 4.0.2 and iPhone 4 (5.1)
  3. Natalie Huynh 2012-05-04

    Open to update label

JSON Source