mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
This commit is contained in:
1 parent
a3435d5d8d
commit
04e5cd7071
3 files changed
+14
-4
No files matched your search
@@ -2517,6 +2517,7 @@ function scrollbarWidth() {
|
||||
probe.style.width = "100px";
|
||||
probe.style.height = "100px";
|
||||
probe.style.overflow = "scroll";
|
||||
probe.style.scrollbarWidth = getComputedStyle(el.viewerPanel).scrollbarWidth;
|
||||
probe.style.left = "-9999px";
|
||||
document.body.append(probe);
|
||||
const width = probe.offsetWidth - probe.clientWidth;
|
||||
|
||||
Reference in new issue
Block a user