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.

176 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
    Replies
    1. Great Article. Thank you for sharing! Really an awesome post for every one.

      IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Projects for CSE It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

      JavaScript Online Training in India

      JavaScript Training in India

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  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. Each department of CAD have specific programmes which, while completed could provide you with a recognisable qualification that could assist you get a job in anything design enterprise which you would really like.

    AutoCAD training in Noida

    AutoCAD training institute in Noida


    Best AutoCAD training institute in Noida

    ReplyDelete
  11. 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
  12. I have read your blog its very attractive and impressive. I like it your blog.
    laser barcode scanner

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

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


    RPA Training in Hyderabad

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

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

    ReplyDelete
  17. Your blog is very useful for me, Thanks for your sharing.


    MSBI Training in Hyderabad


    ReplyDelete
  18. 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
  19. I really enjoy the blog.Much thanks again. Really Great salesforce Online Course

    ReplyDelete
  20. 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
  21. Your blog on RPA is so attractive that i am not able to stop myself to read this blog of yours on RPA.This blog contains all the important topics and points of RPA. Requesting you keep updating this post on RPAand help them who is eager to gain knowledge on RPA.
    Thanks and Regards,
    Uipath training in chennai
    blue prism training institute in chennai
    blue prism training with certification in chennai

    ReplyDelete
  22. 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
  23. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.

    CEH Training In Hyderbad

    ReplyDelete
  24. Excellent blog I visit this blog it's really awesome. The important thing is that in this blog content written clearly and understandable. The content of information is very informative.
    Workday HCM Online Training
    Oracle Fusion Financials Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training

    ReplyDelete
  25. 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
  26. 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
  27. Excellent blog I visit this blog it's really awesome. The important thing is that in this blog content written clearly and understandable. The content of information is very informative.
    Workday HCM Online Training
    Oracle Fusion Financials Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training

    ReplyDelete
  28. Hey Nice Blog!! Thanks For Sharing!!!Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!
    SEO company in coimbatore
    SEO company
    web design in coimbatore

    ReplyDelete
  29. Amazing web journal I visit this blog it's extremely marvelous. Interestingly, in this blog content composed plainly and reasonable. The substance of data is educational.
    Oracle Fusion Financials Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training

    ReplyDelete

  30. Thanks for sharing this Information. This content is so informative and helpful for many people.
    AngularJS Training in Noida

    ReplyDelete
  31. 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
  32. An astounding web diary I visit this blog, it's inconceivably magnificent. Strangely, in this current blog's substance made point of fact and sensible. The substance of information is instructive.
    Oracle Fusion Financials Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training

    ReplyDelete
  33. Hi,this is Very Nice information Regarding your Software Company and Beautiful Blog Also. So Np compete Also one of the Ios, Android, Java, Devops, UX, Ui, Chat Bot, Company in Chennai
    If you want any job Regarding above Positions,, Please give to Your Queries and send your Resume Back to this mail: sales@npcompete.com

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

    ReplyDelete
  35. 1. many peoples want to join random whatsapp groups . On this website you can join unlimited groups . click and get unlimited whatsapp group links 18+

    ReplyDelete
  36. 2. if you are searching for free unlimted tricks then visit now on Uvoffer.com and get unlimited offers and informations.
    film ka naam whatsapp puzzle answer 🐡🐡🐡 +🐘+3+🏹+🏚+πŸ’” =

    ReplyDelete
  37. 3. if you want girls mobile numbers then this website is best for you . you can visit on this website and get their information and you also can meet with thrm and go for a date . click here to use our website --- 100% free online dating website

    ReplyDelete
  38. An amazing web journal I visit this blog, it's unbelievably wonderful. Oddly, in this blog's content made without a doubt and reasonable. The substance of data is informative.
    Oracle Fusion Financials Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training

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

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

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

    ReplyDelete
  42. Great to share this information thanks. I am really happy to say it’s an interesting post to read. I learn new information from your blog.
    http://www.rankingsstar.com

    ReplyDelete
  43. An overwhelming web journal I visit this blog, it's unfathomably amazing. Unusually, in this present blog's substance made inspiration driving truth and reasonable. The substance of data is enlightening
    Oracle Fusion Financials Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training

    ReplyDelete
  44. After browsing lots of information in web for AngularJS I found this AngularJS Blog Information is Very useful. Thanks for sharing this post

    ReplyDelete
  45. Thanks for sharing useful information.. we have learned so much information from your blog..... keep sharing

    Oracle Fusion HCM Online Training

    ReplyDelete
  46. 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
  47. Thanks for sharing such a wonderful blog on Mean Stack .This blog contains so much data about Mean Stack ,like if anyone who is searching for the Mean Stack data,They will easily grab the knowledge of from this.Requested you to please keep sharing these type of useful content so that other can get benefit from your shared content.
    Thanks and Regards,
    Mean Stack training in Chennai
    Best mean stack training in Chennai
    Top Mean stack raining in Chennai
    Course fees for Mean stack in Chennai
    Mean stack training fees in Velachery, Chennai

    ReplyDelete
  48. Thanks for sharing valuable information.It will help everyone.keep Post.
    Kerala Lottery Guessing

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

    ReplyDelete
  50. 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
  51. Best post .. I really like your hard work and impressive writing style. Thanks for sharing. Keep Writing. Please visit - Sai Baba Images and Good Morning Love

    ReplyDelete
  52. Thanks for sharing such a wonderful blog on Mean Stack .This blog contains so much data about Mean Stack ,like if anyone who is searching for the Mean Stack data,They will easily grab the knowledge of from this.Requested you to please keep sharing these type of useful content so that other can get benefit from your shared content.
    Thanks and Regards,
    Mean Stack training in Chennai
    Best mean stack training in Chennai
    Top Mean stack raining in Chennai
    Course fees for Mean stack in Chennai
    Mean stack training fees in Velachery, Chennai

    ReplyDelete
  53. Hiii...Thanks for sharing Great info...Nice post...Keep move on...
    Angular JS Training in Hyderabad

    ReplyDelete
  54. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man, Keep it up.
    Veteran Mode, MLive Mod APK, Layon Shop, Multitas Pinjaman, Brasil Tv New, Project IGI, Enlight Pixaloop Pro, Gimy TV, Sakura Live Show China, TR Vibes HotStar

    ReplyDelete
  55. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    angular js online training

    ReplyDelete

  56. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    workday studio online training
    best workday studio online training
    top workday studio online training

    ReplyDelete
  57. very nice amazing website your website is wonderfull thank you very much sir λ¨ΉνŠ€ κ²€μ¦μ‚¬μ΄νŠΈ

    ReplyDelete
  58. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    top angular js online training

    ReplyDelete
  59. I have to agree with all your inclusions such great information that will be very useful, Thank you for sharing this great blog.
    Events Planner In Delhi
    Wedding Planner In Delhi

    ReplyDelete
  60. 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
  61. Nice blog.Thanks for sharing this information.
    If you want to know about latest fashion then please visit my site:-

    thefashionlifestyle

    ReplyDelete
  62. 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 Snapchat App Download

    ReplyDelete
  63. Thanks for posting
    my website techwolk is related to technology

    ReplyDelete
  64. Thanks for posting
    my webside techwolk.in/Sonsindiasong
    I have Webside techwolk.in/Sonsindiasong for Related by All type Songs.

    ReplyDelete
  65. "I have website Live Digital india for Related to Movies Entertenmaint so please visit my site
    Download Movies
    https://livedigitalindia.in

    Thanks
    Dharmendra"

    ReplyDelete
  66. 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
  67. 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
  68. Your Website is very good, Your Website impressed us a lot, We have liked your website very much.
    We have also created a website of Android App that you can see it.

    http://damodapk.com/
    http://infotodaypk.com/

    ReplyDelete
  69. Insightful article, for further deeper understanding read
    bbs.wwtx
    stardima
    Top websites to hire web designing experts

    ReplyDelete
  70. thanks for sharing information awesome blog post click here

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

    ReplyDelete
  72. Great Article. Thank you for sharing! Really an awesome post for every one.

    IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Projects for CSE It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

    JavaScript Online Training in India

    JavaScript Training in India

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

    ReplyDelete
  73. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    angular js online training
    best angular js online training
    top angular js online training

    ReplyDelete
  74. wonderful article contains lot of valuable information. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
    This article resolved my all queries.good luck an best wishes to the team members.learn digital marketing use these following link
    Digital Marketing Course in Chennai

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

    ReplyDelete
  76. The Free Hearth Mod Menu APK is Only a modded Variant of the game Garena No Cost Hearth. It’s by far the most sought after arcade game app by gamers since it permits them to inject different features like auto aim, higher rate, teleportation, amongst the others, which makes it simpler to allow them to progress in positions and battle. Click Here For Visit My Site thanks ....

    ReplyDelete
  77. You are the play of the Mobile Legend Games & you want to HACK MLBB game? So, DOWNLOAD injector tools. EZ Star Injector, EZ Hunter, NC Injector, Marjotech PH , NEW I-MOBA, NEW BoxSkin, YS Patcher

    ReplyDelete