Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7255] iOS: TextField - Field not displaying when font and borderStyle and hintText not set

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-14T23:29:04.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsiOS
Labelsmodule_textfield, parity, qe-testadded
ReporterChris Barber
AssigneeMax Stepanov
Created2012-01-17T10:31:38.000+0000
Updated2013-11-07T05:33:07.000+0000

Description

var textField = Ti.UI.createTextField({
	height: 30,
	top: 20,
	left: 20,
	right: 20
});
If you set the "hintText", the field will display. If you set the "borderStyle" to anything, the field will display. If you set the "font" to anything (even just an empty {} object), the field will display. If you do not set hintText, borderStyle, or font, the field will not display. You will not be able to focus it. It does however properly adjust the spacing in a vertical layout if you have another element below it.

Attachments

FileDateSize
Screen Shot 2012-01-17 at 10.24.48 AM.png2012-01-17T10:32:09.000+0000113957

Comments

  1. Chris Barber 2012-01-17

    Field is not visible or focusable.
  2. Wilson Luu 2012-02-08

    Closing bug. Verified fix on: SDK build: 1.9.0.v20120207171634 Titanium Studio, build: 1.0.8.201201262211 xcode: 4.2 Devices: iphone 4S Sprint (5.0.1)
  3. Shameer Jan 2013-11-07

    Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4863

JSON Source