[TIMOB-7255] iOS: TextField - Field not displaying when font and borderStyle and hintText not set
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-14T23:29:04.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Sprint 2012-03, Release 2.0.0, Release 1.8.2 |
Components | iOS |
Labels | module_textfield, parity, qe-testadded |
Reporter | Chris Barber |
Assignee | Max Stepanov |
Created | 2012-01-17T10:31:38.000+0000 |
Updated | 2013-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
File | Date | Size |
---|---|---|
Screen Shot 2012-01-17 at 10.24.48 AM.png | 2012-01-17T10:32:09.000+0000 | 113957 |
Field is not visible or focusable.
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)
Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4863