Sha256: 5ce5338b1d784a29a52344184856908951e859810a3b1ccadfae008d38306bcc

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

// window.widthVerticalScrollbar = function(){
//   outside = $('<div></div>');
//   $('body').append outside;
//   inside = $('<div></div>');
//   outside.append(inside);

//   outsideHeight = $(document).height();
//   insideHeight = outsideHeight + 1;

//   outside.css({
//     height: "#{outsideHeight}px",
//     'overflow-y': 'hidden'});

//   inside.css({
//     height: "#{insideHeight}px"});

//   withoutScroll = $('div', outside).innerWidth();
//   outside.css({'overflow-y': 'auto'});
//   withScroll = $('div', outside).innerWidth();
//   $(outside).remove();
//   return withoutScroll - withScroll;
// }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
esphinx-rails-1.1.4 lib/assets/javascripts/esphinx/util/scrollbar.js
esphinx-rails-1.1.3 lib/assets/javascripts/esphinx/util/scrollbar.js
esphinx-rails-1.1.2 lib/assets/javascripts/esphinx/util/scrollbar.js