TabBar is not responsive on multiple screens

Hello everyone! 
i have a little problem in the TabBar widget, this is my code : 

tabButtons = { { label = "Tab1", id = "tab1", selected = true, onPress = handleTabBarEvent }, { label = "Tab2", id = "tab2", onPress = handleTabBarEvent }, { label = "Tab3", id = "tab3", onPress = handleTabBarEvent } }

and this is the widget : 

 tabBar = widget.newTabBar( { top = display.contentHeight-8, width = display.contentWidth, buttons = tabButtons } )

Everything is working fine : 

but when i change, i see that the widget is not responsive, is there a solution for this ? 

Thanks for your time!

Can you post your config.lua?

You should use display.actualContentHeight and display.actualContentHeight

Can you post your config.lua?

You should use display.actualContentHeight and display.actualContentHeight