|
|
@ -120,13 +120,14 @@ PointItem.prototype.redraw = function() { |
|
|
|
dom.content.style.marginLeft = 2 * this.props.dot.width + 'px'; |
|
|
|
//dom.content.style.marginRight = ... + 'px'; // TODO: margin right
|
|
|
|
|
|
|
|
dom.dot.style.top = ((this.height - this.props.dot.height) / 2) + 'px'; |
|
|
|
dom.dot.style.left = (this.props.dot.width / 2) + 'px'; |
|
|
|
|
|
|
|
// recalculate size
|
|
|
|
this.width = dom.point.offsetWidth; |
|
|
|
this.height = dom.point.offsetHeight; |
|
|
|
|
|
|
|
// reposition the dot
|
|
|
|
dom.dot.style.top = ((this.height - this.props.dot.height) / 2) + 'px'; |
|
|
|
dom.dot.style.left = (this.props.dot.width / 2) + 'px'; |
|
|
|
|
|
|
|
this.dirty = false; |
|
|
|
} |
|
|
|
|
|
|
|