Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8476] iOS: Defining a left value for a Ti.UI.createSwitch makes the switch not respond to events

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-17T10:15:41.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.0.2
ComponentsiOS
Labelsn/a
ReporterMatt Wyman
AssigneeShameer Jan
Created2012-03-30T07:05:12.000+0000
Updated2017-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);

Comments

  1. Shameer Jan 2013-04-17

    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
  2. Lee Morris 2017-03-17

    Closing ticket as the issue cannot be reproduced.

JSON Source