diff --git a/client/galaxy/scripts/layout/page.js b/client/galaxy/scripts/layout/page.js index c86076508fc..407f9285b63 100644 --- a/client/galaxy/scripts/layout/page.js +++ b/client/galaxy/scripts/layout/page.js @@ -32,7 +32,7 @@ var PageLayoutView = Backbone.View.extend( BaseMVC.LoggableMixin ).extend({ Galaxy.modal = this.modal = new Modal.View(); this.masthead = new Masthead.View( this.options.config ); this.$el.attr( 'scroll', 'no' ); - this.$el.append( this._template() ); + this.$el.html( this._template() ); this.$el.append( this.masthead.$el ); this.$el.append( this.modal.$el ); this.$messagebox = this.$( '#messagebox' ); @@ -93,10 +93,14 @@ var PageLayoutView = Backbone.View.extend( BaseMVC.LoggableMixin ).extend({ if( _.has( page, panelId ) ){ page[ panelId ].setElement( '#' + panelId ); page[ panelId ].render(); - } else if ( panelId !== 'center' ) { - page.center.$el.css( panelId, 0 ); } }); + if( !this.left ){ + this.center.$el.css( 'left', 0 ); + } + if( !this.right ){ + this.center.$el.css( 'right', 0 ); + } return this; }, @@ -106,27 +110,26 @@ var PageLayoutView = Backbone.View.extend( BaseMVC.LoggableMixin ).extend({ '
', '
', '
', - '
', - '
', - '
', - '