In an options list when scrollX = FALSE, the scrollbar still appears.

In an options list when scrollX = FALSE, the scrollbar still appears.

AlanRAlanR Posts: 3Questions: 1Answers: 0

The option has to be completely removed from the list before the bar is removed. Is this correct behavior since other options seem to be turned off when set to FALSE. Thanks!

Answers

  • kthorngrenkthorngren Posts: 21,591Questions: 26Answers: 5,006
    edited June 2017

    A similar question was just asked. Is you issue the same as this:
    https://datatables.net/forums/discussion/42773/unwanted-horizontal-scrollbar#latest

    If not maybe post your config or better a link showing the issue.

    Kevin

  • AlanRAlanR Posts: 3Questions: 1Answers: 0

    Yes, that issue seems to be the same as mine.

  • AlanRAlanR Posts: 3Questions: 1Answers: 0

    Maybe it will help to show this:

    DataTable <- datatable(
                    Data,
                    colnames = ColumnNames,
                    escape = FALSE,
                    extensions = Extensions,
                    options = list(scrollX = FALSE, scrollY = TRUE),
                    container = Container,
                    class = "display compact nowrap",
                    rownames = FALSE
                ) 
    

    The output of the above code keeps the horizontal scroll turned on; when the options line above is changed to options = list(scrollY = TRUE), the horizontal scroll is turned off.

This discussion has been closed.