Skip to content

Commit

Permalink
set tooltip bounds container to document.body if undefined fixes slab…
Browse files Browse the repository at this point in the history
  • Loading branch information
benbro authored and jhchen committed Sep 9, 2016
1 parent f09893c commit 55a8bab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class Quill {
}
}
Quill.DEFAULTS = {
bounds: document.body,
bounds: null,
formats: null,
modules: {},
placeholder: '',
Expand Down
2 changes: 1 addition & 1 deletion ui/tooltip.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Tooltip {
constructor(quill, boundsContainer) {
this.quill = quill;
this.boundsContainer = boundsContainer;
this.boundsContainer = boundsContainer || document.body;
this.root = quill.addContainer('ql-tooltip');
this.root.innerHTML = this.constructor.TEMPLATE;
let offset = parseInt(window.getComputedStyle(this.root).marginTop);
Expand Down

0 comments on commit 55a8bab

Please sign in to comment.