 
             # If there is already something fixed to the top, record the height
             # of it so we can account for it in our scroll calculations later.
-            if not @topNavbarHeight
+            if not @topNavbarHeight?
                 topElement = $('.navbar-fixed-top')
                 if topElement.length
                     @topNavbarHeight = topElement.height()
                 else
                     @topNavbarHeight = 0
 
+            if not @workflowTopOffset?
+                @updateContextPanelOffsets()
+
         showExportOptions: ->
             $('.export-options-modal .alert-block').hide()
             @ui.exportOptions.modal('show')

            @areFiltersManuallyHidden = false
            # Flag indicating the current visibility of the context panel
            @areFiltersHidden = false

        toggleContextPanelButtonClicked: =>
            if @areFiltersHidden


        initialize: ->
            $(document).on 'scroll', @onPageScroll
            $(window).resize @onWindowResize

            @monitors = {}

