Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2390] Android: Image views where height is set very small can result in java.lang.ArithmeticException (divide by zero)

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M02
ComponentsAndroid
Labelsandroid, defect
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:18:27.000+0000
Updated2011-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'
}) );

Comments

  1. Bill Dawson 2011-04-15

    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...

  2. Matt Schmulen 2011-04-15

    regression tested android 1.6 sim.

  3. Matt Schmulen 2011-04-15

    pass regression test android 2.1 sim

JSON Source