[TIMOB-8476] iOS: Defining a left value for a Ti.UI.createSwitch makes the switch not respond to events
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-04-17T10:15:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.0.2 |
Components | iOS |
Labels | n/a |
Reporter | Matt Wyman |
Assignee | Shameer Jan |
Created | 2012-03-30T07:05:12.000+0000 |
Updated | 2017-03-17T18:35:16.000+0000 |
Description
I created a switch in my code and whenever I define a left value while the switch is inside a view (with no left defined) and then inside another view (with a left defined) the switch will no longer receive events. So I cannot change the value of the switch by clicking/touching it. Here's the simplest case that reproduced the problem for me:
var outerView = Titanium.UI.createView({});
currentWindow.add(outerView);
var innerView = Titanium.UI.createView({
left: 155
});
outerView.add(innerView);
var onOffSwitch = Titanium.UI.createSwitch({
left: 60,
value: true
});
innerView.add(onOffSwitch);
Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
Closing ticket as the issue cannot be reproduced.