-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* All of these were caused by the presence of multiple body tags on the page, which happened because networkD3's sankey plot generates SVGs containing body tags via SVG's foreignObject tag * In various places, the 'body' jQuery selector string is used under the assumption there is only one 'body' tag on the page. The presence of multiple 'body' tags breaks reliant code in strange ways. * The fix was to use document.body or 'body:first' instead of 'body'.
- Loading branch information
1 parent
20329fe
commit 99715d6
Showing
11 changed files
with
67 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
tools/datepicker-patches/001-fix-networkD3-sankey-svg-bugs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/inst/www/shared/datepicker/js/bootstrap-datepicker.js b/inst/www/shared/datepicker/js/bootstrap-datepicker.js | ||
index 97f5c086..2a0d8ae6 100644 | ||
--- a/inst/www/shared/datepicker/js/bootstrap-datepicker.js | ||
+++ b/inst/www/shared/datepicker/js/bootstrap-datepicker.js | ||
@@ -671,7 +671,7 @@ | ||
visualPadding = 10, | ||
container = $(this.o.container), | ||
windowWidth = container.width(), | ||
- scrollTop = this.o.container === 'body' ? $(document).scrollTop() : container.scrollTop(), | ||
+ scrollTop = this.o.container === 'body:first' ? $(document).scrollTop() : container.scrollTop(), | ||
appendOffset = container.offset(); | ||
|
||
var parentsZindex = []; | ||
@@ -686,7 +686,7 @@ | ||
var left = offset.left - appendOffset.left, | ||
top = offset.top - appendOffset.top; | ||
|
||
- if (this.o.container !== 'body') { | ||
+ if (this.o.container !== 'body:first') { | ||
top += scrollTop; | ||
} | ||
|
||
@@ -1766,7 +1766,7 @@ | ||
enableOnReadonly: true, | ||
showOnFocus: true, | ||
zIndexOffset: 10, | ||
- container: 'body', | ||
+ container: 'body:first', | ||
immediateUpdates: false, | ||
title: '', | ||
templates: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters