From becc5c59f00ffebddaeac684efb56b601c822e8b Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Mon, 1 Feb 2016 15:30:46 +0200 Subject: [PATCH 1/2] wrong for loop count fixed --- CrossPlatformModules.csproj | 4 ++- apps/ui-tests-app/css/tab-view.xml | 42 ++++++++++++++++++++++++++++++ apps/ui-tests-app/css/text.css | 3 +++ ui/tab-view/tab-view.ios.ts | 2 +- 4 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 apps/ui-tests-app/css/tab-view.xml create mode 100644 apps/ui-tests-app/css/text.css diff --git a/CrossPlatformModules.csproj b/CrossPlatformModules.csproj index 7568e227f..3c8aa80a5 100644 --- a/CrossPlatformModules.csproj +++ b/CrossPlatformModules.csproj @@ -209,6 +209,8 @@ + + Designer @@ -2153,7 +2155,7 @@ False - + \ No newline at end of file diff --git a/apps/ui-tests-app/css/tab-view.xml b/apps/ui-tests-app/css/tab-view.xml new file mode 100644 index 000000000..39bccac2d --- /dev/null +++ b/apps/ui-tests-app/css/tab-view.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/apps/ui-tests-app/css/text.css b/apps/ui-tests-app/css/text.css new file mode 100644 index 000000000..fc4faec03 --- /dev/null +++ b/apps/ui-tests-app/css/text.css @@ -0,0 +1,3 @@ +TabView{ + font-size:10; +} \ No newline at end of file diff --git a/ui/tab-view/tab-view.ios.ts b/ui/tab-view/tab-view.ios.ts index 3f5dedce1..8f770c90b 100644 --- a/ui/tab-view/tab-view.ios.ts +++ b/ui/tab-view/tab-view.ios.ts @@ -333,7 +333,7 @@ export class TabView extends common.TabView { tabBar.tintColor = this.selectedColor ? this.selectedColor.ios : null; var states = getTitleAttributesForStates(this); - for (var i = 0; i < this.items.length; i++) { + for (var i = 0; i < tabBar.items.count; i++) { var item = tabBar.items[i]; item.setTitleTextAttributesForState(states.normalState, UIControlState.UIControlStateNormal); item.setTitleTextAttributesForState(states.selectedState, UIControlState.UIControlStateSelected); From 5968f1993339776b31b2a1392a9a954b33d16cb3 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Mon, 1 Feb 2016 16:49:03 +0200 Subject: [PATCH 2/2] Update tab-view.xml --- apps/ui-tests-app/css/tab-view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ui-tests-app/css/tab-view.xml b/apps/ui-tests-app/css/tab-view.xml index 39bccac2d..02d5cb572 100644 --- a/apps/ui-tests-app/css/tab-view.xml +++ b/apps/ui-tests-app/css/tab-view.xml @@ -1,4 +1,4 @@ - + @@ -39,4 +39,4 @@ - \ No newline at end of file +