fix: refresh Tabber height when it comes into viewport

Fixes: #137
This commit is contained in:
alistair3149 2024-06-06 15:07:00 -04:00
parent 15f90d6760
commit 8b39e9e970
No known key found for this signature in database

View file

@ -420,6 +420,10 @@ class TabberEvent {
const headerOverflowObserver = new ResizeObserver( this.debounceUpdateHeaderOverflow() );
headerOverflowObserver.observe( this.tablist );
}
// Refresh tabber height after it comes into viewport (#137)
const activeTabpanel = document.getElementById( this.activeTab.getAttribute( 'aria-controls' ) );
TabberAction.setActiveTabpanel( activeTabpanel );
}
/**