Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1135] iOS: TextField: Textfield is not visible on window when styles applied in tss file

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2014-09-15T18:10:34.000+0000
Affected Version/sAlloy 1.5.0
Fix Version/sn/a
ComponentsStyling
Labelsqe-3.4.0
ReporterPriya Agarwal
AssigneeTim Poulsen
Created2014-09-12T11:11:50.000+0000
Updated2018-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.

Comments

  1. Tim Poulsen 2014-09-15

    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.
  2. Eric Merriman 2018-03-07

    Closing as invalid. If this is incorrect, please reopen.

JSON Source