if (_X + rectBBox.x <= 0) { //check left
        _X = -rectBBox.x;
        cache.labelX_ = (_X - _this.xScale(cache.labelX0)) / viewWidth;
      } else if (_X + offsetX > viewWidth) { //check right
        _X = viewWidth - offsetX;