[TIMOB-4882] iOS: leftPadding on a textField is not clickable
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-01-28T23:39:21.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Sprint 2011-35 |
Components | iOS |
Labels | n/a |
Reporter | Alan Leard |
Assignee | Vishal Duggal |
Created | 2011-08-03T13:54:35.000+0000 |
Updated | 2017-03-24T18:16:20.000+0000 |
Description
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({
backgroundColor:'#fff'
});
win.add(Ti.UI.createTextField({
paddingLeft: 20,
top: 30,
height: 30,
width: 200,
borderRadius: 10,
hintText: 'Hello World',
borderColor: '#000'}));
win.open();
Due to the deep nature of this change, it's highly likely that regressions will happen. This will need extensive testing.
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.
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...
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.
Closing ticket as invalid with reference to the above comments.