I have a question as follows:
Each time the highlight is loaded, the label position is always offset, which is why
for example:
reader.on(Globals.Events.CONTENT_DOCUMENT_LOADED, function ($iframe, spineItem) {
if (_initialized) {
_highlightsManager.attachAnnotations($iframe, spineItem, reader.getLoadedSpineItems());
_highlightsManager.addHighlight(spineItem.idref,cfi,id,"test-highlight");
} else {
_initializedLate = true;
}
});
I have a question as follows: Each time the highlight is loaded, the label position is always offset, which is why for example: reader.on(Globals.Events.CONTENT_DOCUMENT_LOADED, function ($iframe, spineItem) { if (_initialized) { _highlightsManager.attachAnnotations($iframe, spineItem, reader.getLoadedSpineItems()); _highlightsManager.addHighlight(spineItem.idref,cfi,id,"test-highlight"); } else { _initializedLate = true; } });