Skip to content

Commit

Permalink
Merge branch 'v4-dev' into v4-dev-xmr-docs-example-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Oct 21, 2018
2 parents 9a2e841 + 9ed0b31 commit 6349000
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 410 deletions.
12 changes: 11 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Enforce Unix newlines
* text=auto eol=lf
*.css text eol=lf
*.html text eol=lf
*.js text eol=lf
*.json text eol=lf
*.md text eol=lf
*.rb text eol=lf
*.scss text eol=lf
*.svg text eol=lf
*.txt text eol=lf
*.xml text eol=lf
*.yml text eol=lf

# Don't diff or textually merge source maps
*.map binary
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ GEM
jekyll (~> 3.3)
jekyll-toc (0.8.0)
nokogiri (~> 1.7)
jekyll-watch (2.1.1)
jekyll-watch (2.1.2)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.1)
Expand Down
9 changes: 1 addition & 8 deletions js/tests/unit/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ $(function () {
// Enable the scrollbar measurer
$('<style type="text/css"> .modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; } </style>').appendTo('head')
// Function to calculate the scrollbar width which is then compared to the padding or margin changes
$.fn.getScrollbarWidth = function () {
var scrollDiv = document.createElement('div')
scrollDiv.className = 'modal-scrollbar-measure'
document.body.appendChild(scrollDiv)
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth
document.body.removeChild(scrollDiv)
return scrollbarWidth
}
$.fn.getScrollbarWidth = $.fn.modal.Constructor.prototype._getScrollbarWidth

// Simulate scrollbars
$('html').css('padding-right', '16px')
Expand Down
Loading

0 comments on commit 6349000

Please sign in to comment.