FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore(tabview): set tab font size default value · NativeScript/NativeScript@e217ac1 · GitHub

Commit e217ac1

Browse files
committed
chore(tabview): set tab font size default value
1 parent f1361d3 commit e217ac1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tns-core-modules/ui/tab-view/tab-view.ios.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@ interface TabStates {
511511
function getTitleAttributesForStates(tabView: TabView): TabStates {
512512
const result: TabStates = {};
513513

514-
const tabItemFontSize = tabView.style.tabTextFontSize;
514+
const defaultTabItemFontSize = 10;
515+
const tabItemFontSize = tabView.style.tabTextFontSize || defaultTabItemFontSize;
515516
const font: UIFont = tabView.style.fontInternal.getUIFont(UIFont.systemFontOfSize(tabItemFontSize));
516517
const tabItemTextColor = tabView.style.tabTextColor;
517518
const textColor = tabItemTextColor instanceof Color ? tabItemTextColor.ios : null;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL