Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8480] iOS: Ti.UI.TextField with attribute "paddingLeft" or "paddingRight" is partially unclickable

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2020-02-19T11:29:55.000+0000
Affected Version/sRelease 1.8.2, Release 3.1.0, Release 3.2.0
Fix Version/sn/a
ComponentsiOS
LabelsRTN, reprod
ReporterFederico Casali
AssigneeRene Pot
Created2012-02-16T01:02:48.000+0000
Updated2020-02-19T11:29:55.000+0000

Description

Problem description

Text fields where the attribute "paddingLeft" or "paddingRight" is present, are unclickable on the left-hand or right-hand side, respectively. Expected behavior: Text fields where the attribute "paddingLeft" or "paddingRight" is present, are completely clickable (as they are when those two attributes are not present).

Reproducible use case

The following code adds a text field to a window. The text field has both paddingLeft and paddingRight set, making both the left and right part of the text field unclickable.
Ti.UI.setBackgroundColor("orange");

var window = Ti.UI.createWindow();

var textField = Ti.UI.createTextField({
	backgroundColor: "white",
	height: 44,
	hintText: "Try clicking on this text field at the very left or right",
	left: 10,
	paddingLeft: 25,
	paddingRight: 25,
	right: 10,
	top: 30
});
window.add(textField);

window.open();

Additional notes

http://developer.appcelerator.com/question/119753/textfield-paddingleft-problem

Comments

  1. Shameer Jan 2013-04-02

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPad Simulator: iOS SDK version: 6.0
  2. Lee Morris 2017-05-24

    I have been able to reproduce this issue 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
  3. Rene Pot 2020-02-19

    properties no longer exist

JSON Source