rhandsontable icon indicating copy to clipboard operation
rhandsontable copied to clipboard

Unable to scroll page when cursor is over an rhandsontable

Open bowenwang7 opened this issue 4 years ago • 4 comments

Hi,

I found that page scrolling does not work whenever the cursor is over an rhandsontable. Do you know how to fix this? Thank you in advance!

bowenwang7 avatar Apr 20 '20 05:04 bowenwang7

i experienced same problem and i found by adding ,overflow = 'visible' parameter to rhandsontable function will not block scroll page when cursor is over rhandsontable. hope this helps

chinthanishanth avatar Nov 01 '20 12:11 chinthanishanth

I am still experiencing this issue, even after adding what was suggested. It worked when tested on a very basic example app but not in a shinyDashboard as the one below:

library(shiny)
library(shinydashboard)
library(rhandsontable)

ui <- dashboardPage(
  header = dashboardHeader(title = 'Title'),
  body = dashboardBody(
    rHandsontableOutput('hot'),
    tableOutput('t') 
  ),
  sidebar = dashboardSidebar()
)

server <- function(input, output, session) {
  output$hot = renderRHandsontable({
    mtcars %>% 
      rhandsontable(overflow = 'visible')
  })
  output$t = renderTable({
    mtcars
  })
}

shinyApp(ui, server)

paladinic avatar Oct 12 '22 16:10 paladinic

I have exactly the same problem as @paladinic. It is not possible to vertically scroll down an rhandson table in shinydashboard. For now I'm using a workaround in my code which forces a vertical scroll in the rhandson table to appear, by fixing the height ...

rhandsontable(height =300)

and in style.css

.handsontable {
     overflow: hidden;
  }

cath-parkinson avatar Jun 02 '23 08:06 cath-parkinson

@chinthanishanth Adding overflow = hidden only works for me if height is not specified.

asadow avatar Nov 23 '23 20:11 asadow