ios code fixed

This commit is contained in:
Vladimir Enchev
2015-08-12 16:13:35 +03:00
parent 2d07eb9dd0
commit 951f565c21
2 changed files with 2 additions and 7 deletions

View File

@@ -62,13 +62,8 @@ export var testSearchBarFontSize = function () {
helper.buildUIAndRunTest(_createSearchBarFunc(), function (views: Array<viewModule.View>) {
var searchBar = <searchBarModule.SearchBar>views[0];
// TODO: create IOS test once IOS support is working
if (!searchBar.android) {
return;
}
searchBar.text = "";
searchBar.hint = "hint color test";
searchBar.hint = "hint font-size test";
var expectedValue = 30;
var actualValue;

View File

@@ -442,7 +442,7 @@ export class SearchBarStyler implements definition.stylers.Styler {
var bar = <UISearchBar>view.ios;
var sf = <UITextField>bar.valueForKey("_searchField");
if (sf) {
sf.font = (<font.Font>newValue).getUIFont(newValue);
sf.font = (<font.Font>newValue).getUIFont(nativeValue);
}
}