Merge pull request #5569 from timvandermeij/annotation-rewrite-1

Remove unused annotation highlight div
This commit is contained in:
Jonas Jenwald 2014-12-23 11:17:20 +01:00
commit 406b57fae4
2 changed files with 0 additions and 16 deletions

View File

@ -18,7 +18,6 @@
'use strict';
var HIGHLIGHT_OFFSET = 4; // px
var ANNOT_MIN_SIZE = 10; // px
var AnnotationUtils = (function AnnotationUtilsClosure() {
@ -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;
}

View File

@ -72,11 +72,6 @@
border: 0;
}
.pdfViewer .page .annotationHighlight {
position: absolute;
border: 2px #FFFF99 solid;
}
.pdfViewer .page .annotText > img {
position: absolute;
cursor: pointer;