简体   繁体   English

带有流星的Malihu jQuery自定义滚动条未显示

[英]Malihu jQuery Custom Scrollbar with Meteor doesn't show up

I've got Malihu's custom scrollbar added to my meteor app this one: http://atmospherejs.com/mrt/malihu-custom-scrollbar 我已经将Malihu的自定义滚动条添加到了我的流星应用程序中: http ://atmospherejs.com/mrt/malihu-custom-scrollbar

I've got this code: 我有以下代码:

Template.post.rendered = function() {

    $('body').mCustomScrollbar({
        theme: 'minimal-dark'
    });

}

and I see that it's added the right classes to the body however, I don't see the custom scroll bar, instead I see the normal scroll bar. 并且我看到它为body添加了正确的类,但是,我没有看到自定义滚动条,而是看到了普通的滚动条。

What am I missing? 我想念什么? Is there something specific I need to do? 我需要做些具体的事情吗?

By the way I am using Meteor v0.9.0 顺便说一下,我正在使用Meteor v0.9.0

I needed this myself and ended up writing a quick package to make it compatible with Meteor v0.9.0.1 我自己需要这个,最终编写了一个快速软件包,使其与Meteor v0.9.0.1兼容

You can find it here: http://atmospherejs.com/maazalik/malihu-jquery-custom-scrollbar 您可以在这里找到它: http : //atmospherejs.com/maazalik/malihu-jquery-custom-scrollbar

I tested it on some elements and it worked fine. 我在某些元素上对其进行了测试,并且效果很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM