fix bug: tab bar doesn't scroll to fill empty space on the right