This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(position): correct positioning for SVG elements
Bootstrap tooltips calculate the `width` and `height` of elements using first getBoundingClientRect and fall back to `offsetWidth` and `offsetHeight` if it is not available: https://github.com/twbs/bootstrap/blob/master/js/tooltip.js#L297 This fixes a problem with tooltips/popovers on SVG elements in Firefox: twbs/bootstrap#5956 This change mimics that behavior. Closes #1225
- Loading branch information
1 parent
5a01a69
commit 968e540
Showing
2 changed files
with
22 additions
and
5 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