(container: HTMLElement)
| 209 | }; |
| 210 | |
| 211 | const getContentBoxWidth = (container: HTMLElement): number => { |
| 212 | const styles = window.getComputedStyle(container); |
| 213 | const paddingLeft = Number.parseFloat(styles.paddingLeft) || 0; |
| 214 | const paddingRight = Number.parseFloat(styles.paddingRight) || 0; |
| 215 | return container.clientWidth - paddingLeft - paddingRight; |
| 216 | }; |
| 217 | |
| 218 | const getTabGap = (container: HTMLElement): number => { |
| 219 | const styles = window.getComputedStyle(container); |