From b4a6eb17ef050f4079911b63cbef021415ced829 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Fri, 19 Apr 2024 09:36:04 +0000 Subject: [PATCH] Code Format --- components/lib/scrollpanel/ScrollPanel.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lib/scrollpanel/ScrollPanel.vue b/components/lib/scrollpanel/ScrollPanel.vue index c4515d01d..6924933a2 100644 --- a/components/lib/scrollpanel/ScrollPanel.vue +++ b/components/lib/scrollpanel/ScrollPanel.vue @@ -147,7 +147,8 @@ export default { } else { this.$refs.yBar.setAttribute('data-p-scrollpanel-hidden', 'false'); !this.isUnstyled && DomHandler.removeClass(this.$refs.yBar, 'p-scrollpanel-hidden'); - this.$refs.yBar.style.cssText = 'height:' + Math.max(this.scrollYRatio * 100, 10) + '%; top: calc(' + (this.$refs.content.scrollTop / totalHeight) * 100 + '% - ' + this.$refs.xBar.clientHeight + 'px);right:' + right + 'px;'; + this.$refs.yBar.style.cssText = + 'height:' + Math.max(this.scrollYRatio * 100, 10) + '%; top: calc(' + (this.$refs.content.scrollTop / totalHeight) * 100 + '% - ' + this.$refs.xBar.clientHeight + 'px);right:' + right + 'px;'; } } });