Tabview bar fixes
parent
7dd6679849
commit
1f31675942
|
@ -78,7 +78,7 @@ export default {
|
||||||
updateInkBar() {
|
updateInkBar() {
|
||||||
let tabHeader = this.$refs.nav.children[this.findActiveTabIndex()];
|
let tabHeader = this.$refs.nav.children[this.findActiveTabIndex()];
|
||||||
this.$refs.inkbar.style.width = DomHandler.getWidth(tabHeader) + 'px';
|
this.$refs.inkbar.style.width = DomHandler.getWidth(tabHeader) + 'px';
|
||||||
this.$refs.inkbar.style.left = tabHeader.offsetLeft + 'px';
|
this.$refs.inkbar.style.left = DomHandler.getOffset(tabHeader).left - DomHandler.getOffset(this.$refs.nav).left + 'px';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -122,5 +122,6 @@ export default {
|
||||||
|
|
||||||
.p-tabmenu-ink-bar {
|
.p-tabmenu-ink-bar {
|
||||||
display: none;
|
display: none;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -86,7 +86,7 @@ export default {
|
||||||
updateInkBar() {
|
updateInkBar() {
|
||||||
let tabHeader = this.$refs.nav.children[this.findActiveTabIndex()];
|
let tabHeader = this.$refs.nav.children[this.findActiveTabIndex()];
|
||||||
this.$refs.inkbar.style.width = DomHandler.getWidth(tabHeader) + 'px';
|
this.$refs.inkbar.style.width = DomHandler.getWidth(tabHeader) + 'px';
|
||||||
this.$refs.inkbar.style.left = tabHeader.offsetLeft + 'px';
|
this.$refs.inkbar.style.left = DomHandler.getOffset(tabHeader).left - DomHandler.getOffset(this.$refs.nav).left + 'px';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -124,6 +124,7 @@ export default {
|
||||||
|
|
||||||
.p-tabview-ink-bar {
|
.p-tabview-ink-bar {
|
||||||
display: none;
|
display: none;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-tabview-nav-link:focus {
|
.p-tabview-nav-link:focus {
|
||||||
|
|
Loading…
Reference in New Issue