|
|
@ -476,6 +476,10 @@ ItemSet.prototype.redraw = function() { |
|
|
|
frame = this.dom.frame, |
|
|
|
editable = options.editable.updateTime || options.editable.updateGroup; |
|
|
|
|
|
|
|
// recalculate absolute position (before redrawing groups)
|
|
|
|
this.props.top = this.body.domProps.top.height + this.body.domProps.border.top; |
|
|
|
this.props.left = this.body.domProps.left.width + this.body.domProps.border.left; |
|
|
|
|
|
|
|
// update class name
|
|
|
|
frame.className = 'itemset' + (editable ? ' editable' : ''); |
|
|
|
|
|
|
@ -515,17 +519,12 @@ ItemSet.prototype.redraw = function() { |
|
|
|
// update frame height
|
|
|
|
frame.style.height = asSize(height); |
|
|
|
|
|
|
|
// calculate actual size and position
|
|
|
|
this.props.top = frame.offsetTop; |
|
|
|
this.props.left = frame.offsetLeft; |
|
|
|
// calculate actual size
|
|
|
|
this.props.width = frame.offsetWidth; |
|
|
|
this.props.height = height; |
|
|
|
|
|
|
|
// reposition axis
|
|
|
|
this.dom.axis.style.top = asSize((orientation == 'top') ? |
|
|
|
(this.body.domProps.top.height + this.body.domProps.border.top) : |
|
|
|
(this.body.domProps.top.height + this.body.domProps.centerContainer.height)); |
|
|
|
this.dom.axis.style.left = '0'; |
|
|
|
this.dom.axis.style.height = this.body.domProps.background.height + 'px'; |
|
|
|
|
|
|
|
// check if this component is resized
|
|
|
|
resized = this._isResized() || resized; |
|
|
|