Skip to content

Commit 3c483ab

Browse files
committed
Use real viewer width rather than options to determine whether search is displayed.
1 parent 40fe0d9 commit 3c483ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/javascripts/DV/helpers/construction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ DV._.extend(DV.Schema.helpers, {
213213
var showPages = this.models.document.totalPages > 1;
214214
var showSearch = (this.viewer.options.search !== false) &&
215215
(this.viewer.options.text !== false) &&
216-
(!this.viewer.options.width || this.viewer.options.width >= 540);
216+
(!this.viewer.options.width || this.viewer.elements.viewer.width() >= 540);
217217

218218
// Hide annotations, if there are none:
219219
var $annotationsView = this.viewer.$('.DV-annotationView');

0 commit comments

Comments
 (0)