[ALOY-1135] iOS: TextField: Textfield is not visible on window when styles applied in tss file
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2014-09-15T18:10:34.000+0000 |
| Affected Version/s | Alloy 1.5.0 |
| Fix Version/s | n/a |
| Components | Styling |
| Labels | qe-3.4.0 |
| Reporter | Priya Agarwal |
| Assignee | Tim Poulsen |
| Created | 2014-09-12T11:11:50.000+0000 |
| Updated | 2018-03-07T22:28:26.000+0000 |
Description
Textfield not visible on window when styles applied in tss
Not a regression. Since issue occurs with 3.3.0.GA also
*Steps to reproduce:*
1. Create Alloy Project. Replace the js files with code mentioned below
2. Run the app.
index.js:
$.win.open();
index.xml:
<Alloy>
<Window id="win">
<TextField id="textField"/>
</Window>
</Alloy>
index.tss:
"#win":{
backgroundColor: "white"
}
"#textField":{
borderStyle: "Ti.UI.INPUT_BORDERSTYLE_ROUNDED",
color: "#336699",
top: "10",
left: "10",
width: "250",
height: "60"
}
{color:green}*Expected Result:*{color}
2. Textfield must be visible.
{color:red}*Actual Result:*{color}
Textfield is not visible.
Note: if the styles are applied on xml file itself. Then Textfield is visible.
In the TSS (or JS) file, the borderStyle property must be entered without quotes. You are referring to a constant (ultimately an integer). By adding the quotes, you're passing a string which is then ignored.
Closing as invalid. If this is incorrect, please reopen.