mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-23 23:47:46 +08:00
[common]: fix width calculation
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user