|
- {"ast":null,"code":"export function getSize(scrollbar) {\n var containerEl = scrollbar.containerEl,\n contentEl = scrollbar.contentEl;\n return {\n container: {\n // requires `overflow: hidden`\n width: containerEl.clientWidth,\n height: containerEl.clientHeight\n },\n content: {\n // border width should be included\n width: contentEl.offsetWidth - contentEl.clientWidth + contentEl.scrollWidth,\n height: contentEl.offsetHeight - contentEl.clientHeight + contentEl.scrollHeight\n }\n };\n}","map":null,"metadata":{},"sourceType":"module"}
|