documentcloud / document-viewer

The NYTimes Document Viewer
http://open.blogs.nytimes.com/2010/03/27/a-new-view-introducing-doc-viewer-2-0/
Apache License 2.0
691 stars 120 forks source link

viewer.api.redraw(true) isn't redrawing page widths #45

Closed knowtheory closed 9 years ago

knowtheory commented 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).

knowtheory commented 9 years ago

Well, that was a little easier than i thought it'd be: https://github.com/documentcloud/document-viewer/commit/e0c0113f0d1fac17a918513222557120533b0ecf