From 0cfe354123e0d2373852971305f15f8389166993 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 21 Nov 2024 18:04:32 +0300 Subject: [PATCH] Refactor on xbar calculation --- packages/primevue/src/scrollpanel/ScrollPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/scrollpanel/ScrollPanel.vue b/packages/primevue/src/scrollpanel/ScrollPanel.vue index c11f59d11..09bc9836c 100644 --- a/packages/primevue/src/scrollpanel/ScrollPanel.vue +++ b/packages/primevue/src/scrollpanel/ScrollPanel.vue @@ -138,7 +138,7 @@ export default { this.$refs.xBar.setAttribute('data-p-scrollpanel-hidden', 'false'); !this.isUnstyled && removeClass(this.$refs.xBar, 'p-scrollpanel-hidden'); - this.$refs.xBar.style.cssText = 'width:' + Math.max(this.scrollXRatio * 100, 10) + '%; inset-inline-start:' + (this.$refs.content.scrollLeft / totalWidth) * 100 + '%;bottom:' + bottom + 'px;'; + this.$refs.xBar.style.cssText = 'width:' + Math.max(this.scrollXRatio * 100, 10) + '%; left:' + (this.$refs.content.scrollLeft / totalWidth) * 100 + '%;bottom:' + bottom + 'px;'; } }