title: Is there a way to fix top headers, buttons and search box from scrolling down
body: <p>Is there a way to fix the headers, search box and buttons from scrolling</p>
  <p>Right now, all these are moving down so can we fix these</p>
  <pre><code>library(shiny)
  library(DT)
  
  ui &lt;- fluidPage(
    DT::dataTableOutput(&quot;test&quot;)
  )
  
  server &lt;- function(input, output, session) {
    
    output$test &lt;- DT::renderDataTable({
      datatable(
        iris,
        extensions = c('Buttons', 'FixedColumns'), 
        options = list(
          dom = 'Bfrt',
          pageLength = nrow(iris),
          buttons = c('excel', 'csv'),
          scrollX = TRUE
        )
      )
    }, server = FALSE)
    
  }
  
  shinyApp(ui, server)
  
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/URLAx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/URLAx.png" alt="enter image description here" /></a></p>