0

I have downloaded a simple bootstrap template with a fixed sidebar (http://startbootstrap.com/template-overviews/simple-sidebar/) and tried to integrate custom scroll bar in it (http://manos.malihu.gr/jquery-custom-content-scroller/) but once the plugin runs

 $("#sidebar-wrapper").mCustomScrollbar()

or

 $("#sidebar-wrapper").mCustomScrollbar({theme: "minimal-dark"})

the menu becomes a black screen. I created this fiddle to show this behaviour https://jsfiddle.net/9qawf6r3/. Here is another example working: http://jsfiddle.net/wuj2v604/

Any idea on this?

Leonardo Lanchas
  • 1,616
  • 1
  • 15
  • 37

1 Answers1

0

Change the background-color property in .mCustomScrollBox class .

Its coming from jquery.mCustomScrollbar.min.css .

.mCustomScrollBox {
    direction: ltr;
    height: 100%;
    max-width: 100%;
    outline: 0 none;
    overflow: hidden;
    position: relative;
}

Add background-color:#FFF !important; or wtever color you want.

EDIT : add this css too

#mCSB_1_container{
  height:100%;
}

Check this jsfiddle

bob
  • 4,595
  • 2
  • 25
  • 35