@progress/kendo-vue-common
Version:
Kendo UI for Vue Common Utilities package
20 lines (19 loc) • 798 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { BrowserSupportService as o } from "./browser-support.service.mjs";
import { canUseDOM as t } from "./canUseDOM.mjs";
const c = () => !t || !document.body ? !1 : new o().scrollbarWidth, s = () => {
if (!t || !document.body)
return !1;
const r = new o().scrollbarWidth;
document.body.style.setProperty("--kendo-scrollbar-width", `${r}px`);
};
export {
c as getScrollbarWidth,
s as setScrollbarWidth
};