Width of TabBar

I’m trying to make a custom Tabbar. I want to make two tabs at the top of the app that span all the way across the app. I found the getTabButtonBestWidth() method in the LookAndFeel that allows me to adjust the width of the Tabs but it appears there is a limit to how wide they can get. I was wondering what’s limiting the size and where i can find that routine

Thanks