Lint nits
This commit is contained in:
parent
4a661e1735
commit
c714c782cc
@ -383,8 +383,8 @@ var Page = (function PageClosure() {
|
|||||||
case 'Text':
|
case 'Text':
|
||||||
var content = annotation.get('Contents');
|
var content = annotation.get('Contents');
|
||||||
var title = annotation.get('T');
|
var title = annotation.get('T');
|
||||||
item.content = (typeof content == 'string') ? stringToPDFString(content) : null;
|
item.content = stringToPDFString(content || '');
|
||||||
item.title = (typeof title == 'string') ? stringToPDFString(title) : null;
|
item.title = stringToPDFString(title || '');
|
||||||
item.name = annotation.get('Name').name;
|
item.name = annotation.get('Name').name;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -486,7 +486,8 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
|
|||||||
var annotTitle = document.createElement('h1');
|
var annotTitle = document.createElement('h1');
|
||||||
var annotContent = document.createElement('p');
|
var annotContent = document.createElement('p');
|
||||||
|
|
||||||
annotDetails.style.left = (Math.floor(item.x - view.x + item.width) * scale) + 'px';
|
var offsetPos = Math.floor(item.x - view.x + item.width);
|
||||||
|
annotDetails.style.left = (offsetPos * scale) + 'px';
|
||||||
annotDetails.style.top = (Math.floor(item.y - view.y) * scale) + 'px';
|
annotDetails.style.top = (Math.floor(item.y - view.y) * scale) + 'px';
|
||||||
annotTitle.textContent = item.title;
|
annotTitle.textContent = item.title;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user