malihu / malihu-custom-scrollbar-plugin

Highly customizable custom scrollbar jQuery plugin, featuring vertical/horizontal scrollbars, scrolling momentum, mouse-wheel, keyboard and touch support etc.
http://manos.malihu.gr/jquery-custom-content-scroller
MIT License
4.11k stars 1.51k forks source link

_mCS_1 mCS_no_scrollbar in vertical scrollbar #425

Open ahsanzigron opened 8 years ago

ahsanzigron commented 8 years ago

I am using custom scrolbar for vertical scroll, i can not give the width to the div because it automatically set according to screen, what can i do to implement this plugin?

screen

malihu commented 8 years ago

Width should not matter for the vertical scrollbar. Are you trying to apply both scrollbars (y,x) or just the vertical one? Does your element have a height set? Is it scrollable with browser's native scrollbar?

ahsanzigron commented 8 years ago

i have tried both x and y at the same time and one by one too. but its not working.

No there is no height set for this particular element.

yes it is scrollable, i mean default srollbar is working on this element.

On Tue, Jun 14, 2016 at 7:16 PM, Manos notifications@github.com wrote:

Width should not matter for the vertical scrollbar. Are you trying to apply both scrollbars (y,x) or just the vertical one? Does your element have a height set? Is it scrollable with browser's native scrollbar?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/malihu/malihu-custom-scrollbar-plugin/issues/425#issuecomment-225895032, or mute the thread https://github.com/notifications/unsubscribe/ANhKnRbNDTQjRXQPu3Uo9JpqKMKrjHg6ks5qLrfQgaJpZM4I1Ng_ .

Ahsan Zaheer

UX Designer

ZIGRON | Pakistan

Software Technology Park,

Ground Floor, I-9/3, Islamabad, Pakistan

Tel: +92 51 4440685-86

Mob: +92 343 505 8988

ahsan.zaheer@zigron.com https://pk.linkedin.com/in/ahsanzaheer89 https://twitter.com/zigronpakistan https://www.facebook.com/ZigronPak/

This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive his for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message.

ahsanzigron commented 8 years ago

The Content div is generating on runtime, i thought that's why it is not working properly.

for the first time it looks good and generate the custom scroll, but when the data is populated on runtome then it goes wrong.

On Wed, Jun 15, 2016 at 9:09 AM, Ahsan Zaheer ahsan.zaheer@zigron.com wrote:

i have tried both x and y at the same time and one by one too. but its not working.

No there is no height set for this particular element.

yes it is scrollable, i mean default srollbar is working on this element.

On Tue, Jun 14, 2016 at 7:16 PM, Manos notifications@github.com wrote:

Width should not matter for the vertical scrollbar. Are you trying to apply both scrollbars (y,x) or just the vertical one? Does your element have a height set? Is it scrollable with browser's native scrollbar?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/malihu/malihu-custom-scrollbar-plugin/issues/425#issuecomment-225895032, or mute the thread https://github.com/notifications/unsubscribe/ANhKnRbNDTQjRXQPu3Uo9JpqKMKrjHg6ks5qLrfQgaJpZM4I1Ng_ .

Ahsan Zaheer

UX Designer

ZIGRON | Pakistan

Software Technology Park,

Ground Floor, I-9/3, Islamabad, Pakistan

Tel: +92 51 4440685-86

Mob: +92 343 505 8988

ahsan.zaheer@zigron.com https://pk.linkedin.com/in/ahsanzaheer89 https://twitter.com/zigronpakistan https://www.facebook.com/ZigronPak/

This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive his for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message.

Ahsan Zaheer

UX Designer

ZIGRON | Pakistan

Software Technology Park,

Ground Floor, I-9/3, Islamabad, Pakistan

Tel: +92 51 4440685-86

Mob: +92 343 505 8988

ahsan.zaheer@zigron.com https://pk.linkedin.com/in/ahsanzaheer89 https://twitter.com/zigronpakistan https://www.facebook.com/ZigronPak/

This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive his for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message.

malihu commented 8 years ago

Do you append the dynamic data directly on the element itself? If yes, you need to append it inside .mCSB_container element. Check the following FAQ: http://manos.malihu.gr/jquery-custom-content-scroller/4/#faq-4