Skip to content

Commit

Permalink
Merge pull request #5569 from timvandermeij/annotation-rewrite-1
Browse files Browse the repository at this point in the history
Remove unused annotation highlight div
  • Loading branch information
Snuffleupagus committed Dec 23, 2014
2 parents 72bb48b + c67ad28 commit 406b57f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
11 changes: 0 additions & 11 deletions src/display/annotation_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

'use strict';

var HIGHLIGHT_OFFSET = 4; // px
var ANNOT_MIN_SIZE = 10; // px

var AnnotationUtils = (function AnnotationUtilsClosure() {
Expand Down Expand Up @@ -66,16 +65,6 @@ var AnnotationUtils = (function AnnotationUtilsClosure() {
}
cstyle.width = width + 'px';
cstyle.height = height + 'px';

var highlight = document.createElement('div');
highlight.className = 'annotationHighlight';
highlight.style.left = highlight.style.top = -HIGHLIGHT_OFFSET + 'px';
highlight.style.right = highlight.style.bottom = -HIGHLIGHT_OFFSET + 'px';
highlight.setAttribute('hidden', true);

item.highlightElement = highlight;
container.appendChild(item.highlightElement);

return container;
}

Expand Down
5 changes: 0 additions & 5 deletions web/pdf_viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@
border: 0;
}

.pdfViewer .page .annotationHighlight {
position: absolute;
border: 2px #FFFF99 solid;
}

.pdfViewer .page .annotText > img {
position: absolute;
cursor: pointer;
Expand Down

0 comments on commit 406b57f

Please sign in to comment.