mzubala / jquery-custom-scrollbar

189 stars 102 forks source link

Doesn`t work if scroll block is display none #49

Open uaBirder opened 10 years ago

uaBirder commented 10 years ago

Hello. I need your help.

If scroll block is display none, your plugin doesn't work. Example: popup on page .. show/hide block.

Tell me please, what can i do ?

umarfarukm commented 9 years ago

same issue in here.. please help!!

cefaloide commented 9 years ago

Hello. I had the same problem and I did this. I set css property:

.container{
    visibility: hidden
}

and after load plugin I use

$(".container").customScrollbar();
$(".container").hide();
$(".container").css( "visibility", "visible" );

Probably exist a better way.