Update TabbedBar.js

Wrong conditional for `horizontal` layout