Skip to content

Commit

Permalink
fixing page-note auto-zoom sizing issues. I hate doing it with a 'def…
Browse files Browse the repository at this point in the history
…er', but hey.
  • Loading branch information
jashkenas committed Jun 1, 2011
1 parent e899e46 commit 7359d81
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/javascripts/DV/models/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ DV.model.Annotations.prototype = {

this.renderAnnotationsByIndex.rendered = true;
this.renderAnnotationsByIndex.zoomLevel = this.zoomLevel;
this.updateAnnotationOffsets();
_.defer(_.bind(this.updateAnnotationOffsets, this));
},

// Refresh the annotation's title and content from the model, in both
Expand Down
6 changes: 6 additions & 0 deletions public/stylesheets/DV/components/annotations.css
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,12 @@
background-color:#fff;
font-family:Arial,Helvetica,sans-serif;
}
.DV-annotation .DV-pagination {
display: none;
}
.DV-activeAnnotation .DV-pagination {
display: block;
}

.DV-pagination .DV-trigger
{
Expand Down
2 changes: 1 addition & 1 deletion public/stylesheets/DV/components/structure.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}

.DV-allAnnotations {
padding: 0 9px;
padding: 0 32px;
}

.DV-well{
Expand Down
2 changes: 1 addition & 1 deletion viewer-debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<div id="document-viewer"></div>
<script type="text/javascript">
window.currentDocument = DV.load(
'https://www.documentcloud.org/documents/96825-shale-gas-bubble-emails-v2.js',
'http://www.documentcloud.org/documents/96522-torrance-statement-on-crime-map.js',
{container: '#document-viewer'}
);
</script>
Expand Down

0 comments on commit 7359d81

Please sign in to comment.