Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4882] iOS: leftPadding on a textField is not clickable

GitHub Issuen/a
Resolution Date2014-01-28T23:39:21.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-35
ReporterAlan Leard
AssigneeVishal Duggal


If you set the leftPadding in a textField, the area of the padding does not recognize a touch event for the textField to gain focus. See text code below:
var win = Titanium.UI.createWindow({  

	paddingLeft: 20, 
	top: 30, 
	height: 30,
	width: 200, 
	borderRadius: 10, 
	hintText: 'Hello World', 
	borderColor: '#000'}));


  1. Blain Hamon 2011-08-09

    Due to the deep nature of this change, it's highly likely that regressions will happen. This will need extensive testing.
  2. Blain Hamon 2011-08-29

    Padding is the area around the actual text field, not within. As such, tapping on the padding is not tapping on the field, so the lack of focus is understandable. If a field focusing due to taps outside of it is desired, use a click handler to call focus.
  3. Matthew Lanham 2011-08-30

    What you've described above is incorrect, the problem is that paddingLeft adds space "inside" the textfield to pad the hint/value of the text field from the left, when this is done you cannot touch on the left side of the "inside" of the textfield, this has nothing to do with touching outside of the textfield. You can quite easily replicate this with the code above, hence why i submitted code...
  4. Sabil Rahim 2014-01-28

    By default this is the iOS Behavior the leftpadding(leftview of UITextField) does not fire any click even on the textfield. Marking ticket as invalid. [Native test](https://www.dropbox.com/s/2kklo0b04d2ob66/textfield.zip) code showing the same behavior.
  5. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source