File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
public/javascripts/DV/helpers Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ DV._.extend(DV.Schema.helpers, {
6868
6969 if ( options . responsive ) {
7070 var container = DV . jQuery ( options . container ) ;
71- this . viewer . options . sidebarVisible = ( container . width ( ) - 2 ) >= this . viewer . helpers . RESPONSIVE_MIN_SIDEBAR_WIDTH ;
71+ if ( this . viewer . options . sidebar !== false ) {
72+ this . viewer . options . sidebarVisible = ( container . width ( ) - 2 ) >= this . viewer . helpers . RESPONSIVE_MIN_SIDEBAR_WIDTH ;
73+ }
7274 container . css ( {
7375 position : 'relative' ,
7476 height : options . height
Original file line number Diff line number Diff line change @@ -523,7 +523,9 @@ DV.Schema.helpers = {
523523 responsiveRedraw : function ( ) {
524524 var width = this . viewer . elements . viewer . width ( ) ;
525525 if ( width != this . _prevWidth ) {
526- this . viewer . options . sidebarVisible = width >= this . viewer . helpers . RESPONSIVE_MIN_SIDEBAR_WIDTH ;
526+ if ( this . viewer . options . sidebar !== false ) {
527+ this . viewer . options . sidebarVisible = width >= this . viewer . helpers . RESPONSIVE_MIN_SIDEBAR_WIDTH ;
528+ }
527529 this . viewer . api . redraw ( true ) ;
528530 this . _prevWidth = width ;
529531 }
You can’t perform that action at this time.
0 commit comments