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

test(Modal): reuse Modal.prototype._getScrollbarWidth in tests #27472

Merged
merged 3 commits into from
Oct 21, 2018
Merged

test(Modal): reuse Modal.prototype._getScrollbarWidth in tests #27472

merged 3 commits into from
Oct 21, 2018

Conversation

iamandrewluca
Copy link
Contributor

@iamandrewluca iamandrewluca commented Oct 18, 2018

moved modal-scrollbar-measure from SCSS to Js
reused Modal.prototype._getScrollbarWidth in tests

Resolves #27471

js/src/modal.js Outdated
@@ -484,7 +483,7 @@ class Modal {

_getScrollbarWidth() { // thx d.walsh
const scrollDiv = document.createElement('div')
scrollDiv.className = ClassName.SCROLLBAR_MEASURER
scrollDiv.style.cssText = 'position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll;'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove that change please, as we discussed in the related issue this CSS class is needed 👍

@iamandrewluca iamandrewluca changed the title refactor(Modal): move modal-scrollbar-measure from SCSS to Js test(Modal): reuse Modal.prototype._getScrollbarWidth in tests Oct 21, 2018
@Johann-S Johann-S merged commit 1f1308b into twbs:v4-dev Oct 21, 2018
@mdo mdo mentioned this pull request Oct 21, 2018
@iamandrewluca iamandrewluca deleted the modal-scrollbar-measure branch October 21, 2018 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants