-
Notifications
You must be signed in to change notification settings - Fork 34
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
calculate scrollbar width correctly #65
calculate scrollbar width correctly #65
Conversation
I don't have internet access on our Windows VM for testing IE, so I can't verify this, but my best guess is that the new jQuery version calculates |
c86cf68
to
8e68179
Compare
I improved the logic even more. We now don't even need to sniff for Firefox. |
The scrollbar thickness is now mesaured once in a service and cached from there on. |
@buschtoens can you resolve conflicts and fix any failing test cases? |
Yeppa. Did this as the last thing before going home. 😅 I'll fix this as the first thing tomorrow. :) |
3572c3d
to
a71ae53
Compare
@offirgolan Ready for your eyes. 👀 I'm tempted to say that this one failing test actually isn't this PR's fault. |
This is the only test failing and only for the https://travis-ci.org/alphasights/ember-scrollable/jobs/214383533#L921-L931
I'll see if I can replicate this locally. |
The test results appear to be pretty inconsistent. When I run Ironically, the test case that failed in Travis, never fails locally. The test that fails locally:
|
I don't think so. At least the current setup seems to work for Firefox, Chrome and surprisingly IE as well - for the case that failed on Travis, that is. However... Running tests manually in Firefox, it fails consistently for a different case. But it does so on
Running tests in IE is a different nightmare: #67 |
8ea5d5f
to
768ac0f
Compare
Conflicts: addon/components/ember-scrollable.js
Rebased on the current Before that I accidentally rebased onto my own Personally I would have preferred it, if my PR was to blame, because this is probably impossible to track down. |
*sigh... The struggles of web dev. |
@buschtoens do we still need the |
@offirgolan of course you're correct. I forgot to remove the commit. 🙈 I'm currently commuting to work. I'll remove it, when I'm there. 😉 |
768ac0f
to
b1cfb39
Compare
Commit removed and tests still pass. ✅ 😁 |
@buschtoens awesome job! Thanks for seeing this through! 😄 |
Fixes #64
Scrollbar width is still calculated repeatedly; once for every component.