[TIMOB-2390] Android: Image views where height is set very small can result in java.lang.ArithmeticException (divide by zero)
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:58:58.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.5.0 M02 |
| Components | Android |
| Labels | android, defect |
| Reporter | Bill Dawson |
| Assignee | Bill Dawson |
| Created | 2011-04-15T03:18:27.000+0000 |
| Updated | 2011-04-17T01:58:58.000+0000 |
Description
failcase app.js, wherein we set the height to 1:
Titanium.UI.setBackgroundColor('#000');
var w = Titanium.UI.createWindow({
title:'Test',
backgroundColor:'#fff',
fullscreen: true,
exitOnClose: true
});
w.open();
w.add( Ti.UI.createImageView({
width: 1,
height: 1,
image: 'http://www.appcelerator.com/wp-content/uploads/2009/06/titanium_desk.png'
}) );
not sure why the auto comment didn't work. Commit:
https://github.com/appcelerator/titanium_mobile/commit/f4aa7fdfc953b69e9f6c3795ff435bc4b4044977"> https://github.com/appcelerator/titanium_mobile/commit/f4aa7fdfc953...
regression tested android 1.6 sim.
pass regression test android 2.1 sim