|
@ -476,6 +476,10 @@ ItemSet.prototype.redraw = function() { |
|
|
frame = this.dom.frame, |
|
|
frame = this.dom.frame, |
|
|
editable = options.editable.updateTime || options.editable.updateGroup; |
|
|
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
|
|
|
// update class name
|
|
|
frame.className = 'itemset' + (editable ? ' editable' : ''); |
|
|
frame.className = 'itemset' + (editable ? ' editable' : ''); |
|
|
|
|
|
|
|
@ -515,17 +519,12 @@ ItemSet.prototype.redraw = function() { |
|
|
// update frame height
|
|
|
// update frame height
|
|
|
frame.style.height = asSize(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.width = frame.offsetWidth; |
|
|
this.props.height = height; |
|
|
this.props.height = height; |
|
|
|
|
|
|
|
|
// reposition axis
|
|
|
// 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
|
|
|
// check if this component is resized
|
|
|
resized = this._isResized() || resized; |
|
|
resized = this._isResized() || resized; |
|
|