From 7bf35bf1ee6ebbb9dda0bbddb952a5e40666b616 Mon Sep 17 00:00:00 2001 From: "konstantin.kireyev" Date: Mon, 15 Sep 2025 04:13:56 +0500 Subject: [PATCH] [common]: fix width calculation --- apps/common/main/lib/component/Slider.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/Slider.js b/apps/common/main/lib/component/Slider.js index b98ed251cb..f8eaf86cfe 100644 --- a/apps/common/main/lib/component/Slider.js +++ b/apps/common/main/lib/component/Slider.js @@ -136,9 +136,10 @@ define([ this.thumb = this.cmpEl.find('.thumb'); const halfThumbSize = this.thumb.outerWidth() / 2; + this.width = this.options.width - halfThumbSize; this.cmpEl.find('.track-center').width(me.options.width - 14); - this.cmpEl[me.direction === 'vertical' ? 'height' : 'width'](me.options.width - halfThumbSize); + this.cmpEl[me.direction === 'vertical' ? 'height' : 'width'](this.width); var onMouseUp = function (e) { e.preventDefault();