[common]: fix width calculation

This commit is contained in:
konstantin.kireyev
2025-09-15 04:13:56 +05:00
parent c970c63301
commit 7bf35bf1ee

View File

@ -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();