Skip to content

Commit 1fda6d9

Browse files
committed
boom oom
1 parent 8577a01 commit 1fda6d9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

public/javascripts/DV/helpers/construction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ DV._.extend(DV.Schema.helpers, {
4747
if (options.responsive) {
4848
if (!options.height) {
4949
var winHeight = DV.jQuery(window).height();
50-
var toSubtract = options.responsiveOffset == null ? 100 : options.responsiveOffset;
50+
var toSubtract = options.responsiveOffset == null ? this.viewer.helpers.RESPONSIVE_DEFAULT_OFFSET : options.responsiveOffset;
5151
options.height = winHeight - toSubtract;
5252
}
5353
}

public/javascripts/DV/helpers/helpers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ DV.Schema.helpers = {
44

55
RESPONSIVE_MIN_SIDEBAR_WIDTH: 900,
66

7+
RESPONSIVE_DEFAULT_OFFSET: 100,
8+
79
annotationClassName: '.DV-annotation',
810

911
// Bind all events for the docviewer

0 commit comments

Comments
 (0)