Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
totem
ind
Commits
709483e9
Commit
709483e9
authored
Nov 14, 2019
by
Remon Huijts
Browse files
Add build artefacts that I forgot, again
parent
8950f09c
Changes
1
Hide whitespace changes
Inline
Side-by-side
grapheditorxblock/public/js/grapheditorxblock.js
View file @
709483e9
...
...
@@ -122961,7 +122961,15 @@ Sidebar.prototype.addPaletteFunctions = function(id, title, expanded, fns) {
this.old_addPaletteFunctions(id, title, expand, fns);
};
// Override focus() to prevent execution in EditorUi for an iframe:
/**
* Override focus() to prevent execution in EditorUi for an iframe.
*
* We render our diagrams in an iframe and the library code in the EditorUi
* class calls focus() on its container right after the HTML elements for it are
* created. This makes the browser scroll to the last rendered diagram on the
* page, skipping previous diagrams or content. Below is a grotesque hack to
* prevent that call, without modifying the library code.
*/
var oldHTMLFocus = HTMLElement.prototype.focus;
HTMLElement.prototype.focus = function () {
// Only prevent execution for this specific div:
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment