Closed richiksc closed 9 years ago
If you have paper-tabs
in a container that is initially hidden and later becomes visible then you will have to call updateBar to update the size and position of the bottom bar. The general solution we have considered for this class of issues is detailed in Polymer/polymer#849.
Ok, but i think this behavior should be default.
Resolved via https://github.com/Polymer/polymer/issues/849 and https://github.com/Polymer/paper-tabs/commit/c0b70905af49d5b43a47f3829c08c02b7771d327. Calling updateBar
manually is no longer required when used in containers that use the CoreResizer mixin.
@kevinpschaaf Great! No need to call updateBar
manually any more.
I have embedded paper-tabs in my app like this:
However, there is no selection bar under the first tab as expected. The selection bar only appears when the user taps on a tab other than the first one.
I have inspected the
paper-tabs
' Shadow DOM and have found that theselectionBar
's width is set to 0.Right now it only works when you manually set the selectionBar's width.