if (e.C.shapes[0].geometry.x > 0.5) {
        $annoPopup.css('left', $annoPopup.position().left - $annoPopup.width() - 16 + (e.C.shapes[0].geometry.width*$('.annotorious-annotationlayer').width()) );
      }