Make scrollbar visible always

Make scrollbar visible always

pettedemonpettedemon Posts: 38Questions: 6Answers: 0

Hi,
it is possible to make scrollbar always visible?
thanks

This question has accepted answers - jump to:

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Hi @pettedemon ,

    Which scrollbar are you referring to?

    Cheers,

    Colin

  • pettedemonpettedemon Posts: 38Questions: 6Answers: 0

    Hi @colin ,
    i'm referring to the data tables scrollbar, when I enable the vertical scroll.
    Thanks

  • allanallan Posts: 63,230Questions: 1Answers: 10,417 Site admin
    Answer ✓
    .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody {
      overflow-y: scroll !important;
    }
    

    should do it.

    Allan

  • pettedemonpettedemon Posts: 38Questions: 6Answers: 0

    Hi @allan,
    it doesn't work

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Could you provide a link to your page, or test case, please.

    C

  • allanallan Posts: 63,230Questions: 1Answers: 10,417 Site admin

    Seems to work okay here: http://live.datatables.net/gogekolo/1/edit . Filter the table to reduce the number of entries and the scroll bar is still present.

    As Colin says, we'd need a test case showing the issue.

    Allan

  • pettedemonpettedemon Posts: 38Questions: 6Answers: 0

    Hi,
    even in your example the scrollbar disappear after 2 second. is not always available, I try in Safari, Chrome, Firefox on Mac.
    Thanks

  • allanallan Posts: 63,230Questions: 1Answers: 10,417 Site admin
    Answer ✓

    Do you have your Mac set to use hide scrollbars? All Mac's are that by default at the OS level. See this article (amoung others) for how to get MacOS to always show scrollbars if there are any present.

    Allan

  • pettedemonpettedemon Posts: 38Questions: 6Answers: 0

    Hi @allan ,
    you are fantastic, I don't know this function!
    Thanks!
    Now on my mac, the scrollbar are always visible.
    thanks!!
    :#

This discussion has been closed.