Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Commit

Permalink
Removed unnecessary fixed size for enclosing DIV in image annotator (…
Browse files Browse the repository at this point in the history
…issue #70)
  • Loading branch information
Rainer Simon committed Nov 7, 2013
1 parent 0f88d52 commit 793e89c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mediatypes/image/image.annotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@ annotorious.mediatypes.image.ImageAnnotator = function(item, opt_popup) {
goog.style.setStyle(this.element, 'display', 'inline-block');
this._transferStyles(item, this.element);

var img_bounds = goog.style.getBounds(item);
goog.style.setSize(this.element, img_bounds.width, img_bounds.height);
goog.dom.replaceNode(this.element, item);
goog.dom.appendChild(this.element, item);


var img_bounds = goog.style.getBounds(item);
this._viewCanvas = goog.soy.renderAsElement(annotorious.templates.image.canvas,
{ width:img_bounds.width, height:img_bounds.height });
if (annotorious.events.ui.hasMouse)
Expand Down

0 comments on commit 793e89c

Please sign in to comment.