Word wrap issue with TabView


#1


Brought up this issue - see references above - and was told word wrap is acceptable. See screenshot below, how is it possible that this is considered acceptable? Please advise if anyone has any work arounds (recreating tabbed navigation without tabview?)


#2

Try this on TabView loaded event,

     onLoaded(event: EventData) {
        if (isAndroid) {
            const tabView = (<any>event.object)._tabLayout.getChildAt(0);
            for (let i = 0; i < tabView.getChildCount(); i++) {
                const tabItem = tabView.getChildAt(i),
                    textView = tabItem.getChildAt(1);
                tabItem.setLayoutParams(
                    new android.widget.LinearLayout
                        .LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,
                        android.view.ViewGroup.LayoutParams.MATCH_PARENT)
                );
                textView.setMaxWidth(layout.toDevicePixels(360)); // increase as much you want
                textView.setMaxLines(1);
            }
        }
    }

Font size of tabview item title on ios
#3

Thanks, this seems to be working!:joy: