pdf.js/web
Jonas Jenwald 9bcbd4d872 Add a default title for outline items, to prevent display issues if the title is missing
Open http://www.puolustusvoimat.fi/wcm/61ba4180411e702ea19ee9e364705c96/luonnonmuonaohjelmalumo1985.pdf?MOD=AJPERES#pagemode=bookmarks.

Note how the outline looks entirely empty, but hovering over it you'll see that there are entries present. There's two separate issues here, first of all the fact that you cannot visually make out the outline items, and secondly that the lack of text means that the clickable area becomes too small.

In Adobe Reader this issue is somewhat mitigated, since they use an icon for every item. For PDF.js, the easist way to address this seems to be making use of a default title.
This issue should be *very* rare in practice, but given the simplicity of the solution I think that we should fix this.
2016-02-26 12:46:46 +01:00
..
images Add mirrored triangle (TOC item icon) 2015-09-06 15:35:58 +02:00
.gitignore Remove obselete file from .gitignore 2015-01-26 16:44:45 +01:00
annotation_layer_builder.css Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
annotation_layer_builder.js Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
chrome-i18n-allow-access-to-file-urls.json Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
chromecom.js Allow local PDF files to be viewed in local frames 2016-02-10 14:52:54 +01:00
compatibility.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
compressed.tracemonkey-pldi-09.pdf Add Makefile. Move some files around to make building the website easier. 2011-07-05 10:53:57 -07:00
debugger.js Replaces literal {} created lookup tables with Object.create 2016-01-28 12:18:38 -06:00
default_preferences.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
download_manager.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
firefoxcom.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
grab_to_pan.js Handtool: Remove focus from previous node on click 2014-09-03 16:31:47 +02:00
hand_tool.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
interfaces.js Remove a superfluous "s" in AnnotationsLayerBuilder from files in web/ 2015-12-18 19:55:54 +01:00
mozPrintCallback_polyfill.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
overlay_manager.js Remove unused variables 2015-12-16 23:52:16 +01:00
password_prompt.js Set type="password" for the PasswordPrompt input dynamically, to prevent unnecessary warnings in Firefox for http:// documents (issue 6898) 2016-01-20 13:54:19 +01:00
pdf_attachment_view.js Move the getFileName helper function to the core 2016-02-23 22:49:53 +01:00
pdf_document_properties.js Remove unused variables 2015-12-16 23:52:16 +01:00
pdf_find_bar.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_find_controller.js Replaces literal {} created lookup tables with Object.create 2016-01-28 12:18:38 -06:00
pdf_history.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_link_service.js [Firefox] Prevent internal links from displaying "resource://pdf.js/web/" on hover, by tweaking the fallback case in PDFLinkService_getDestinationHash 2015-12-09 10:07:39 +01:00
pdf_outline_view.js Add a default title for outline items, to prevent display issues if the title is missing 2016-02-26 12:46:46 +01:00
pdf_page_view.js Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
pdf_presentation_mode.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_rendering_queue.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_thumbnail_view.js Remove the hasImage property from PDFThumbnailView 2016-02-25 17:04:11 +01:00
pdf_thumbnail_viewer.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_viewer.component.js Move the getFileName helper function to the core 2016-02-23 22:49:53 +01:00
pdf_viewer.css Remove a superfluous "s" in AnnotationsLayerBuilder from files in web/ 2015-12-18 19:55:54 +01:00
pdf_viewer.js Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
preferences.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
secondary_toolbar.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
text_layer_builder.css Use default line height for the text layer 2015-12-02 23:00:12 +01:00
text_layer_builder.js Move text layer building logic into src/display/text_layer.js 2015-11-19 10:50:27 -06:00
ui_utils.js Move the getFileName helper function to the core 2016-02-23 22:49:53 +01:00
view_history.js Remove unused variables 2015-12-16 23:52:16 +01:00
viewer-snippet-chrome-extension.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer-snippet-chrome-overlays.html Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
viewer-snippet-firefox-extension.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet-minified.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet-mozPrintCallback-polyfill.html Revert PR 5510, except in WebKit browsers, for breaking print preview in Firefox 2015-03-07 00:16:55 +01:00
viewer-snippet.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer.css Better "text" testing. 2015-11-19 11:03:52 -06:00
viewer.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer.js Move the getFileName helper function to the core 2016-02-23 22:49:53 +01:00