Friday, August 29, 2014

AngularJS custom scrollbar directive

On a recent project I needed to create a widget that had a similar look and feel across multiple platforms. This widget had a limited size and needed scrolling. When developing on my Macbook the scrollbars were working fine and everything seemed ok. As soon as we started testing it in Windows, the scrollbar width caused an issue with the rendering pushing all the content down.

The solution that we decided on was to use a custom scrollbar. After scouring the web for custom scrollbars in JavaScript I found TinyScrollbar. I liked it because it didn't use jQuery as we were using AngularJS and didn't want to bog down our app with jQuery. I decided to tweak it and port it to AngularJS as a directive.

It's available on github and via bower (bower install ng-tiny-scrollbar) and a demo can be seen here.

71 comments:

  1. Angularjs Online Training Angularjs Training Angularjs Training Angularjs Training in Chennai Angularjs Training in Chennai Angularjs Course Angularjs Course Angular 2 Training in Chennai

    ReplyDelete
  2. I Visited lot of blogs and Web sites But in this AngularJS Blog Information is Very usefulthanks for sharing it........

    ReplyDelete
  3. I too faced the same thing reading your content I got the same in effective of the similar project As I being a PMP Certified person I completed my PMP Certification in Chennai with effective of holding certain Projects Well I have done several Projects in AngularJS Well Thank you for sharing your experience with the Project

    ReplyDelete
  4. Hi, thank you for sharing the details of your Project Well i too face similar problems in PMP Projects I got my PMP Training in Mumbai At that training time I was having certain issues in the project references but we can slove them using some plugins and some coding Please keep updating the issues you faced so that It will be easy for evaluating the Issues

    ReplyDelete
  5. It's good to see this blog to learn something. check it once through Angularjs Online Training Bangalore

    ReplyDelete
  6. I read your blog in this we have a content on Angularjs Online Training Hyderabad check it once.

    ReplyDelete
  7. Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me.

    Best Cartoon Picture Apps
    Best Caller ID Apps
    Fighting Games for Android
    Call Recorder Apps

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Great Article. its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.

    AngularJS Online Training

    AngularJS Online Training Hyderabad

    AngularJS Online Course

    AngularJS Online course Hyderabad

    ReplyDelete
  10. Very nice post here thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    Best Mouse under 300

    ReplyDelete
  11. I have read your blog its very attractive and impressive. I like it your blog.
    laser barcode scanner

    ReplyDelete
  12. Thanks for sharing such an informative post...

    ReplyDelete
  13. It is nice blog Thank you porovide important information and i am searching for same information to save my time
    AngularJS Online Training

    ReplyDelete
  14. Nice blog with excellent information. Thank you, keep sharing

    ReplyDelete
  15. pmp training bangalore,Prepare for PMP Certification Exam and earn 35 Contact Hours. Master 10 Knowledge Areas and 47 Project Management Processes based on PMBOK Guide
    pmp training in bangalore

    ReplyDelete
  16. Thank you very much for writing such an interesting article on this topic. This has really made me think and I hope to read more. Website Design Company in Bangalore | Web Designing Company in Bangalore | Web Developers in Bangalore Bangalore

    ReplyDelete
  17. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.Roles and reponsibilities of hadoop developer | hadoop developer skills Set | hadoop training course fees in chennai | Hadoop Training in Chennai Omr

    ReplyDelete
  18. This is the exact information I am been searching for, Thanks for sharing the required infos with the clear update and required points. To appreciate this I like to share some useful information regarding Microsoft Azure which is latest and newest,

    Regards,
    Ramya

    azure training in chennai
    azure training center in chennai
    best azure training in chennai
    azure devops training in chenna
    azure training institute in chennai

    ReplyDelete
  19. I am very happy when this blog post read because blog post written in good manner and write on good topic.
    Thanks for sharing valuable information…
    Oracle Training Institutes in Noida
    Java Training Institute in Noida

    ReplyDelete
  20. Astonishing web diary I visit this blog it's incredibly magnificent. Strangely, in this blog content made doubtlessly and sensible. The substance of information is instructive.
    Oracle Fusion Financials Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training
    oracle Fusion Technical online training

    ReplyDelete
  21. I really liked your article and the photo is super. Thanks you. Why pay someone to write my essay?

    ReplyDelete
  22. Thank you for this information, I think it will be useful for me in the future. Why pay for essays ?

    ReplyDelete
  23. This comment has been removed by the author.

    ReplyDelete
  24. Great and useful article. Creating content regularly is very tough.Thanks you.Write more.
    personal reflection essay example.

    ReplyDelete
  25. Thank you for your blog article.Really looking forward to read more. Will read on…We are a Mobile App Development Company providing breaking coverage for mobile app development. For any assistance do contact us.

    ReplyDelete
  26. amazing post written ... It shows your effort and dedication. Thanks for share such a nice post. Please check whatsapp status in hindi

    ReplyDelete
  27. Superb Post. Your simple and impressive way of writing this make this post magical. Thanks for sharing this and please checkout this best wifi names

    ReplyDelete
  28. Very useful post,thanks for sharing.Very clear and understandable content.ElasticSearch is a search engine based on Lucene Library
    elasticsearch training institute in btm layout

    ReplyDelete
  29. Thank you for sharing valuable information. Thanks for providing a great informatic blog, really nice required information & the things I never imagined. Thanks you once again Cooking Fever Mod Apk

    ReplyDelete
  30. Being one of the best Angular JS Development Company USA , HireFullStackDeveloperIndia is devoted to providing the most excellent proficiency to deliver dazzling applications and websites. They aspire at delivering high-class AngularJS based solutions to assist their customers.

    ReplyDelete
  31. Thanks for sharing information awesome blog post Online Education Quiz website For Exam Follow this website Gk in Hindi

    ReplyDelete
  32. This comment has been removed by the author.

    ReplyDelete
  33. It's been our pleasure to inform you that our institution is offering a great deal by giving CS executive classes and a free CSEET class only for those who are interested in gaining knowledge. So what are you waiting for contact us or visit our website at https://uniqueacademyforcommerce.com/

    ReplyDelete
  34. this is the one i am searching in google to read, if you wish to buy oud perfumes in dubai check our website. we are the best perfumes seller and manufacturer in UAE.

    ReplyDelete
  35. Set An Alert For Dollar To Real To Receive An Email When The Exchange Rate Changes. Alternatively, Bookmark The Page And Check Back Here Regularly.

    ReplyDelete
  36. With Aximtrade Mt4 Download You Can Also Use Technical Analysis Tools Such As The Candle Chart, Price-time Charts And More. As Well As Offering 24/5 Trading On Mt4 To All Its Clients, With Xtb You Can Benefit From Additional Features And Enhanced Functionality.

    ReplyDelete
  37. AVATRADE REVIEW Is A Relatively New Forex Broker, Which Offers Its Customers A Wide Range Of Trading Opportunities. Read All The Facts About This Broker In This Detailed Fx Choice Review.

    ReplyDelete
  38. Know the Latest Smartphone Smartphone Price with MobileErBazaar.com totaly free

    Some Peopole are want to know Vivo V23e price of bangladesh it's easy to know

    ReplyDelete
  39. Great post. keep sharing such worthy information.
    Jewellery Software
    Jewellery Software

    ReplyDelete
  40. Thankyou for providing the information
    Jewellery ERP Software Dubai
    Jewellery ERP Software Dubai

    ReplyDelete