You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
I have a straightforward issue with a proposed fix.
Zooming in or out in the browser with verticalScroll:true on the timeline does not recalculate the width of the scrollbar, which throws off the width of group labels:
proposed fix: add the starred line to Core.prototype._startAutoResize
Core.prototype._startAutoResize = function () {
var me = this;
this._stopAutoResize();
this._onResize = function () {
if (me.options.autoResize != true) {
// stop watching when the option autoResize is changed to false
me._stopAutoResize();
return;
}
if (me.dom.root) {
// check whether the frame is resized
// Note: we compare offsetWidth here, not clientWidth. For some reason,
// IE does not restore the clientWidth from 0 to the actual width after
// changing the timeline's container display style from none to visible
if (me.dom.root.offsetWidth != me.props.lastWidth || me.dom.root.offsetHeight != me.props.lastHeight) {
me.props.lastWidth = me.dom.root.offsetWidth;
me.props.lastHeight = me.dom.root.offsetHeight;
**me.props.scrollbarWidth = util.getScrollBarWidth();**
me.body.emitter.emit('_change');
}
}
};