Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11558] MobileWeb: Hiding activity indicator doesn't hide the root DIV

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-12-20T19:26:52.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.2, Release 3.1.0, 2012 Sprint 26 JS, 2012 Sprint 26
ComponentsTooling
Labelsn/a
ReporterBryan Hughes
AssigneeChristian Sullivan
Created2012-10-23T00:24:54.000+0000
Updated2013-02-12T19:23:55.000+0000

Description

Calling hide() on an activity indicator doesn't hide the root DIV of the control
var win = Ti.UI.createWindow({backgroundColor:'#000'});
var activity = Ti.UI.createActivityIndicator({backgroundColor:'red'});
win.add(activity);

activity.show();

win.addEventListener('click', function(){
  activity.hide();
});

win.open();

Comments

  1. Christian Sullivan 2012-12-13

    Pull Requests: [master] https://github.com/appcelerator/titanium_mobile/pull/3588 [3_0_X] https://github.com/appcelerator/titanium_mobile/pull/3591
  2. Eric Merriman 2013-02-12

    Verified test code works as expected. Made a slight change:
       var win = Ti.UI.createWindow({backgroundColor:'#000'});
       var activity = Ti.UI.createActivityIndicator({backgroundColor:'red'});
       var button = Ti.UI.createButton({
       	title: "^",
       	width: 40
       });
       
       button.addEventListener('click', function(){
       	alert("It worked");
       });
       
       win.add(button);
       win.add(activity);
       
       activity.show();
        
       win.addEventListener('click', function(){
         activity.hide();
       });
        
       win.open();
       
    To test: Click activity indicator. Click button in area where activity indicator was displayed Get an alert
  3. Eric Merriman 2013-02-12

    Verified fixed with: CLI: 3.0.24-cr Titanium SDK version 3.0.2.v20130207164659 Titanium Studio, build: 3.0.2.201302041757 Mac OS 10.8.2

JSON Source