We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da5f2b6 commit 7bdcca2Copy full SHA for 7bdcca2
projects/coreui-angular/src/lib/backdrop/backdrop.service.ts
@@ -20,7 +20,6 @@ export class BackdropService {
20
get #scrollbarWidth() {
21
// https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
22
const documentWidth = this.#document.documentElement.clientWidth;
23
- // const scrollbarWidth = Math.abs((window?.innerWidth ?? documentWidth) - documentWidth);
24
const scrollbarWidth = Math.abs((this.#document.defaultView?.innerWidth ?? documentWidth) - documentWidth);
25
return `${scrollbarWidth}px`;
26
}
0 commit comments