mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
ios code fixed
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user