Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6082] iOS: ActivityIndicator disappears while inside the table row

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-05T17:31:55.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-47, Release 1.8.0.1
ComponentsiOS
Labelsmodule_tableviewrow, qe-testadded, regression
ReporterKarol Pomaski
AssigneeStephen Tramer
Created2011-11-08T11:06:05.000+0000
Updated2012-01-05T17:31:55.000+0000

Description

Problem

ActivityIndicator need to be added to the tableview row. Using the sequence hide() and show() makes the indicator to disappear.

Regression - work correctly with 1.7.5

Reproducible Steps

1. Run the sample code and wait

Sample Code

var win = Ti.UI.createWindow();

        win.open();

        var row = Ti.UI.createTableViewRow({
            header: 'Test',
            title: 'Testing',
            color: '#808080',
            selectionStyle: 'none',
            hasChild: false
        });

        var spinner = Ti.UI.createActivityIndicator({
            right: 15,
            height: 50,
            width: 10,
            style: Ti.UI.iPhone.ActivityIndicatorStyle.DARK
        });

        spinner.show();
        row.add(spinner);

        var tableviewData = [row];

        var tableview = Ti.UI.createTableView({
            data: tableviewData
        });

        win.add(tableview);

        setTimeout(function() {
         spinner.hide();
            Ti.API.info('Spinner disappears...');
            setTimeout(function() {
                 
                spinner.show();
                Ti.API.info('And won\'t come back!');
            }, 1000);
        }, 3000);

Associated HelpDesk Ticket

http://appc.me/c/APP-336112

Comments

  1. Stephen Tramer 2011-11-18

    Git bisect (correctly) identifies the bad commit as d9e18a0b7fdfe13d98c6ea56c48e1810d494ee41. That's from way back in the 1.7.0-1.7.3 timeline, so not sure why it was tagged as working with 1.7.5.
  2. Michael Pettiford 2011-12-07

    Tested on Ti Studio 1.0.7.201112061404 
Ti Mob SDK 1.8.0.1.v20111207091653 
OSX Lion iPhone 4S OS 5.0.1 Expected behavior of activity indicator disappearing then reappearing is shown
  3. Jeevan Takhar 2011-12-07

    The behaviour of this doesn't appear to have changed.
  4. Stephen Tramer 2011-12-07

    This is fixed in 1.8.0.1, not in 1.7.
  5. Jeevan Takhar 2011-12-09

    I am still seeing this problem in the latest builds. The spinner appears once, then disappears after the table view data has been reset.
  6. Eric Merriman 2012-01-05

    Reopened to edit tags

JSON Source