Javascript-форум (https://javascript.ru/forum/)
-   jQuery (https://javascript.ru/forum/jquery/)
-   -   Подскажите плс. Заранее благодарен (https://javascript.ru/forum/jquery/50093-podskazhite-pls-zaranee-blagodaren.html)

igor_g75 11.09.2014 17:13

Подскажите плс. Заранее благодарен
 
Есть блок в котором скроллинг появляеться при наведении на блок. Но почему то он срабатывает только при изминении размеров окна броузера.


Код блока

<script src="/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script>window.jQuery || document.write('<script src="/js/jquery-1.9.1.min.js"><\/script>')</script>

<link href="/js/jquery.mCustomScrollbar.css" rel="stylesheet" />
<body>

<div id="content" class="content">
Содержимое блока
</div>
</body>

<script>
(function($){
$(window).load(function(){

$("#content").mCustomScrollbar({
autoHideScrollbar:true,
theme:"light-thin"
});

});
})(jQuery);

</script>


Часовой пояс GMT +3, время: 15:48.