Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13618] iOS: leftPadding on textfield causes clicking issues

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-05-24T23:01:08.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterMatthew Lanham
AssigneeEric Merriman
Created2013-04-18T07:16:41.000+0000
Updated2017-05-24T23:01:08.000+0000

Description

*Problem description* When using leftPadding on a textfield it causes the textfield to become quite user un-friendly. There are two main issues: 1) Even though you only add say 20px of leftPadding, almost 100px of the field becomes un-clickable. 2) The same space does not react to a longpress for magnifying glass i.e. 100px from the left is un-clickable what's so ever. So for example if you managed to type text into the box, you cannot edit text that appears in the first 100px of the field, unless you first long-press to the right hand side and drag to the left. *Expected behavior* Can click within the padded area to activate the text field and longpress to reveal the magnifying glass. *Actual behavior* Cannot click within the padded area to activate the text field or longpress to reveal the magnifying glass. *Test case*
var win = Titanium.UI.createWindow({
	backgroundColor : '#fff'
});

win.add(Ti.UI.createTextField({
	paddingLeft : 20,
	borderStyle : Ti.UI.INPUT_BORDERSTYLE_NONE,
	top : 30,
	height : 30,
	width : 200,
	borderRadius : 10,
	hintText : 'Hello World',
	borderColor : '#000'
}));

win.open();

Comments

  1. Daniel Sefton 2013-04-18

    Tested and confirmed on iOS 6 simulator with 3.1 GA.
  2. Matthew Lanham 2013-06-24

    Seriously? still unresolved, this has been around since Aug 2011 original bug report [TIMOB-4882] come on guys, this is a silly bug that causes the textfields to be completely useless!
  3. Lee Morris 2017-05-24

    Closing this ticket as the issue cannot be reproduced with the following environment; iPhone 7 (10.2) MacOS 10.11.6 (15G31) Studio 4.9.0.201705021158 Ti SDK 6.1.0.v20170519131839 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.7.0_80

JSON Source