Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollbar issues - mac + latest webkit #19

Open
DimitarChristoff opened this issue Aug 1, 2016 · 1 comment
Open

scrollbar issues - mac + latest webkit #19

DimitarChristoff opened this issue Aug 1, 2016 · 1 comment

Comments

@DimitarChristoff
Copy link

So, the scrollbars measure function does not work as no scroll is being triggered as they just don't appear unless mouse over or touch.

there is an easy fix.

.scrollbar-fix::-webkit-scrollbar {
  -webkit-appearance: none;
}

and add the class to the measureScrollbar func

  function measureScrollbar(){
    var $c = $("<div class='scrollbar-fix' style='position:absolute; top:-10000px; left:-10000px; width:100px; height:100px; overflow:scroll;'></div>").appendTo("body");
    var dim = {
      width: $c.width() - $c[0].clientWidth,
      height: $c.height() - $c[0].clientHeight
    };
    $c.remove();
    return dim;
  }

believe this will close off many an issue around scrollbars, such as #18 or #9

@applewindy
Copy link

applewindy commented Aug 30, 2016

I test with the fix.It doesn't work for #18 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants