@@ -210,8 +210,6 @@ DV._.extend(DV.Schema.helpers, {
210210 var showSearch = ( this . viewer . options . search !== false ) &&
211211 ( this . viewer . options . text !== false ) &&
212212 ( ! this . viewer . options . width || this . viewer . options . width >= 540 ) ;
213- var noFooter = ( ! showAnnotations && ! showPages && ! showSearch && ! this . viewer . options . sidebarVisible ) ;
214-
215213
216214 // Hide annotations, if there are none:
217215 var $annotationsView = this . viewer . $ ( '.DV-annotationView' ) ;
@@ -254,20 +252,16 @@ DV._.extend(DV.Schema.helpers, {
254252 this . viewer . $ ( '.DV-navControlsContainer' ) . html ( navControls ) ;
255253 }
256254
257- this . viewer . $ ( '.DV-fullscreenControl' ) . remove ( ) ;
258255 if ( this . viewer . schema . document . canonicalURL ) {
259256 var fullscreenControl = JST . fullscreenControl ( { } ) ;
260- if ( noFooter ) {
261- this . viewer . $ ( '.DV-collapsibleControls' ) . prepend ( fullscreenControl ) ;
262- this . elements . viewer . addClass ( 'DV-hideFooter' ) ;
263- } else {
264- this . viewer . $ ( '.DV-fullscreenContainer' ) . html ( fullscreenControl ) ;
265- }
257+ this . viewer . $ ( '.DV-fullscreenContainer' ) . html ( fullscreenControl ) ;
266258 }
267259
268- this . viewer . elements . viewer . toggleClass ( 'DV-hideSidebar' , ! this . viewer . options . sidebarVisible ) ;
269- this . viewer . elements . viewer . toggleClass ( 'DV-mini' , ! this . viewer . options . sidebarVisible ) ;
270- this . viewer . elements . viewer . toggleClass ( 'DV-supermini' , this . viewer . elements . viewer . width ( ) < 500 ) ;
260+ var v = this . viewer . elements . viewer ;
261+ v . toggleClass ( 'DV-hideSidebar' , ! this . viewer . options . sidebarVisible ) ;
262+ v . toggleClass ( 'DV-mini' , ! this . viewer . options . sidebarVisible ) ;
263+ v . toggleClass ( 'DV-supermini' , this . viewer . elements . viewer . width ( ) < 500 ) ;
264+ v . toggleClass ( 'DV-hideFooter' , this . viewer . options . sidebarVisible ) ;
271265
272266 // Set the currentPage element reference.
273267 this . elements . currentPage = this . viewer . $ ( 'span.DV-currentPage' ) ;
0 commit comments