Closed knowtheory closed 9 years ago
viewer.api.redraw(true) is supposed to redraw pages, but isn't doing so (see an example like https://www.themarshallproject.org/documents/1363276-pew-charitable-trusts-prison-projections-2018 or take any page w/ a viewer on it, resize the page and run DV.viewers[_.keys(DV.viewers)[0]].api.redraw(true) in the console).
viewer.api.redraw(true)
DV.viewers[_.keys(DV.viewers)[0]].api.redraw(true)
Well, that was a little easier than i thought it'd be: https://github.com/documentcloud/document-viewer/commit/e0c0113f0d1fac17a918513222557120533b0ecf
viewer.api.redraw(true)
is supposed to redraw pages, but isn't doing so (see an example like https://www.themarshallproject.org/documents/1363276-pew-charitable-trusts-prison-projections-2018 or take any page w/ a viewer on it, resize the page and runDV.viewers[_.keys(DV.viewers)[0]].api.redraw(true)
in the console).