Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Search bar Problem, hintText disappear

$
0
0

I have a search Bar on a Ipad application that have a hint Text. The problem is this text disappear randomly when I open the window. There is no log or error for search the cause and I've tried to hide and show again and change the width and height without result. I've also tried removing the hint Text, but even the default text is disappearing. The code is simple and i can't find why is this happening. .xml

<View>
    <View id="searchContainer" >
        <SearchBar id="searchBar"></SearchBar>
    </View>
    <TableView id="tableView">
        <FooterView>
            <View id="viewFooter">
                <Label id="noResults"></Label>
            </View>
        </FooterView>
        <Require src="Row"></Require>
    </TableView>
</View>
.tss
"#searchBar": {
    width: '250dp',
    height: '43dp',
    top: '15dp',
    right: '15dp',
    bottom: '10dp',
    borderRadius: '5dp',
    borderColor: '#e9e9e9',
    barColor: '#fff',
    hintText: L('search_text')
}
.js
$.tableView.setSearch($.searchBar);
I'm building for iPad and am using 3.4.0.GA.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>