jrowen / rhandsontable

A htmlwidgets implementation of Handsontable.js
http://jrowen.github.io/rhandsontable/
Other
380 stars 147 forks source link

Unable to scroll page when cursor is over an rhandsontable #351

Open bowenwang7 opened 4 years ago

bowenwang7 commented 4 years ago

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!

chinthanishanth commented 3 years ago

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

paladinic commented 1 year ago

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)
cath-parkinson commented 1 year ago

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;
  }
asadow commented 7 months ago

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