diff --git a/asl_rulebook2/webapp/static/ContentPane.js b/asl_rulebook2/webapp/static/ContentPane.js index 1ffb0e0..9b23457 100644 --- a/asl_rulebook2/webapp/static/ContentPane.js +++ b/asl_rulebook2/webapp/static/ContentPane.js @@ -228,6 +228,10 @@ gMainApp.component( "content-doc", { url += "#nameddest=" + this.ruleid ; else if ( this.pageNo ) url += "#page=" + this.pageNo ; + // FUDGE! Firefox's "pdfjs.defaultDefaultZoom" doesn't work inside an iframe :-/, so we force + // the PDF to show at page width here. + // NOTE: The syntax is, indeed, &-separated values in the anchor :-/ + url += (url.indexOf("#") > 0 ? "&" : "#") + "zoom=FitH" ; return url ; }