Skip to content

Fix pdf.js rendering pages in the wrong order

Stan Hu requested to merge sh-fix-pdfjs-page-ordering into master

There was an implicit assumption that the pages returned from the Promise of pdf.getPage(num) would return in order, but no such guarantee exists. To handle this, we explicitly set which array index based on the page number and then trigger a Vue update via splice.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64467

Edited by Stan Hu

Merge request reports