[TIMOB-11558] MobileWeb: Hiding activity indicator doesn't hide the root DIV
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-12-20T19:26:52.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | Release 3.0.2, Release 3.1.0, 2012 Sprint 26 JS, 2012 Sprint 26 |
| Components | Tooling |
| Labels | n/a |
| Reporter | Bryan Hughes |
| Assignee | Christian Sullivan |
| Created | 2012-10-23T00:24:54.000+0000 |
| Updated | 2013-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();
Pull Requests: [master] https://github.com/appcelerator/titanium_mobile/pull/3588 [3_0_X] https://github.com/appcelerator/titanium_mobile/pull/3591
Verified test code works as expected. Made a slight change:
To test: Click activity indicator. Click button in area where activity indicator was displayed Get an alertvar 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();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