MCPcopy
hub / github.com/wavetermdev/waveterm / getOuterWidth

Function getOuterWidth

frontend/app/tab/tabbar.tsx:180–184  ·  view source on GitHub ↗
(el: HTMLElement)

Source from the content-addressed store, hash-verified

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;

Callers 1

setSizeAndPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected