@nativescript-community/ui-material-core-tabs
Advanced tools
+3
-3
| { | ||
| "name": "@nativescript-community/ui-material-core-tabs", | ||
| "version": "7.2.69", | ||
| "version": "7.2.70", | ||
| "description": "Material Core Tabs component", | ||
@@ -42,5 +42,5 @@ "main": "./index", | ||
| "dependencies": { | ||
| "@nativescript-community/ui-material-core": "^7.2.69" | ||
| "@nativescript-community/ui-material-core": "^7.2.70" | ||
| }, | ||
| "gitHead": "8d003b29d29682667318d754b7924b270f17b7e3" | ||
| "gitHead": "ca426777b4d884b1e9b5220e27c99840b953d6ca" | ||
| } |
| import { GridLayout, Trace } from '@nativescript/core'; | ||
| import { addGridLayoutRow } from '@nativescript-community/ui-material-core/android/utils'; | ||
| import { TabContentItemBase } from './tab-content-item-common'; | ||
@@ -10,3 +11,3 @@ export * from './tab-content-item-common'; | ||
| const layout = new org.nativescript.widgets.GridLayout(this._context); | ||
| layout.addRow(1, org.nativescript.widgets.GridUnitType.star); | ||
| addGridLayoutRow(layout, 1, org.nativescript.widgets.GridUnitType.star); | ||
| return layout; | ||
@@ -13,0 +14,0 @@ } |
| import { Application, Color, ImageSource, Utils, getTransformedText } from '@nativescript/core'; | ||
| import { addGridLayoutRow } from '@nativescript-community/ui-material-core/android/utils'; | ||
| import { TabContentItem } from '../tab-content-item'; | ||
@@ -174,9 +175,9 @@ import { getIconSpecSize, itemsProperty, selectedIndexProperty, tabStripProperty } from '../tab-navigation-base'; | ||
| if (this.tabsPosition === 'top') { | ||
| nativeView.addRow(1, org.nativescript.widgets.GridUnitType.auto); | ||
| nativeView.addRow(1, org.nativescript.widgets.GridUnitType.star); | ||
| addGridLayoutRow(nativeView, 1, org.nativescript.widgets.GridUnitType.auto); | ||
| addGridLayoutRow(nativeView, 1, org.nativescript.widgets.GridUnitType.star); | ||
| viewPager.setLayoutParams(lp); | ||
| } | ||
| else { | ||
| nativeView.addRow(1, org.nativescript.widgets.GridUnitType.star); | ||
| nativeView.addRow(1, org.nativescript.widgets.GridUnitType.auto); | ||
| addGridLayoutRow(nativeView, 1, org.nativescript.widgets.GridUnitType.star); | ||
| addGridLayoutRow(nativeView, 1, org.nativescript.widgets.GridUnitType.auto); | ||
| this.tabBarLayoutParams = lp; | ||
@@ -183,0 +184,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
252920
0.13%3902
0.05%