(el: HTMLElement)
| 178 | if (tabBar === null) return; |
| 179 | |
| 180 | const getOuterWidth = (el: HTMLElement): number => { |
| 181 | const rect = el.getBoundingClientRect(); |
| 182 | const style = getComputedStyle(el); |
| 183 | return rect.width + parseFloat(style.marginLeft) + parseFloat(style.marginRight); |
| 184 | }; |
| 185 | |
| 186 | const tabbarWrapperWidth = tabbarWrapperRef.current.getBoundingClientRect().width; |
| 187 | const windowDragLeftWidth = draggerLeftRef.current.getBoundingClientRect().width; |
no outgoing calls
no test coverage detected