Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Invisible selection bar #37

Closed
richiksc opened this issue Nov 15, 2014 · 4 comments
Closed

Invisible selection bar #37

richiksc opened this issue Nov 15, 2014 · 4 comments

Comments

@richiksc
Copy link

I have embedded paper-tabs in my app like this:

<core-toolbar class="tall">
  <!-- main toolbar content goes here -->
  <paper-tabs class="bottom fit" selected="0">
    <paper-tab>ONE</paper-tab>
    <paper-tab>ONE</paper-tab>
    <paper-tab>THREE</paper-tab>
  </paper-tabs>
</core-toolbar>

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 the selectionBar's width is set to 0.

Right now it only works when you manually set the selectionBar's width.

@frankiefu
Copy link
Contributor

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.

@richiksc
Copy link
Author

Ok, but i think this behavior should be default.

@kevinpschaaf
Copy link
Contributor

Resolved via Polymer/polymer#849 and c0b7090. Calling updateBar manually is no longer required when used in containers that use the CoreResizer mixin.

@richiksc
Copy link
Author

richiksc commented Dec 4, 2014

@kevinpschaaf Great! No need to call updateBar manually any more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants