10 lines
315 B
JavaScript
10 lines
315 B
JavaScript
function getTabContentBoundaries(tabsId) {
|
|
const tabsContainer = document.getElementById(tabsId)
|
|
const contentDiv = tabsContainer.querySelector('.mmt-tabs-content')
|
|
|
|
const boundaries = contentDiv.getBoundingClientRect()
|
|
return {
|
|
width: boundaries.width,
|
|
height: boundaries.height
|
|
}
|
|
} |