Open tiesselune opened 9 years ago
+1 on this. I am facing with a similar problem. The problem is in _tabChanged method of paper-tabs.html. It calculates the width and the position of selection bar and executes:
this._positionBar(this._pos.width, this._pos.left);
But if the page or parent element of paper-tabs is not rendered yet, "this._pos.width" and "this._pos.left" returns null. This causes selection bar not to appear. You can manually handle this problem by changing paper-tabs.html but it looks like this is a bug and have to be fixed.
If a
paper-tabs
element is the child of acore-collapse
element that is initially closed, the selection bar is invisible until selection changes.Manually calling
resizeHandler()
as soon as thecore-collapse
begins to open solves the problem, but it is not meant to be public, so either a fix or a cleaner solution (if fixing is impossible by design) would be a good idea.