Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smith/217052 to your computer and use it in GitHub Desktop.
Save smith/217052 to your computer and use it in GitHub Desktop.
Index: /project/public/javascripts/libs/scrollbar.js
===================================================================
--- /project/public/javascripts/libs/scrollbar.js (revision 84)
+++ /project/public/javascripts/libs/scrollbar.js (working copy)
@@ -74,12 +74,12 @@
if(this.container.scrollHeight <= this.container.offsetHeight)
this.disable();
else{
+ this.enable();
this.slider.trackLength = this.slider.maximumOffset() - this.slider.minimumOffset();
if(this.options.proportional){
this.handle.style.height = Math.max(this.container.offsetHeight * (this.container.offsetHeight / this.container.scrollHeight),this.options.handle_minimum_height) + 'px';
this.slider.handleLength = this.handle.style.height.replace(/px/,'');
}
- this.enable();
}
},
onWindowResize: function(){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment