aboutsummaryrefslogtreecommitdiff
path: root/js/tooltip.js
AgeCommit message (Collapse)AuthorFilesLines
2016-07-25Update version numbers in preparation for v3.3.7 release (#20357)Chris Rebert1-2/+2
[skip sauce]
2016-07-20Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3; ↵Chris Rebert1-1/+4
fixes #20280 (#20313) Refs https://github.com/jquery/jquery/issues/3137 [skip validator]
2016-05-29Clear tooltip's $element to prevent leaking memory. Fixes #17973Greg Sheremeta1-3/+6
Closes #19659
2016-01-01Update copyright years to 2016Chris Rebert1-1/+1
[ci skip]
2015-11-24bump versionMark Otto1-2/+2
2015-06-16bump versionMark Otto1-2/+2
2015-05-04Merge pull request #16014 from redbmk/issue-16008Chris Rebert1-6/+32
Multiple tooltip triggers don't play well together
2015-04-28Minor lint tweaks.XhmikosR1-3/+3
2015-04-27Multiple tooltip triggers don't play well togetherBraden M. Kelley1-6/+32
Fixes issue #16008
2015-04-27Merge pull request #16152 from jarthod/tooltip-placement-viewport-fixF A T1-6/+5
Tooltip/popover: Fix auto placement to use viewport
2015-04-27Compare tooltip right offset to viewport right offset (and not width)Adrien1-1/+1
Closes #16142 by merging it.
2015-04-25Throw error when tooltip/popover template has multiple top-level elementsChris Rebert1-1/+7
Closes #16219.
2015-04-21Allow viewport option to be a functionAdrien Siami1-1/+1
Closes #16151 by merging a rebased version of it that adds docs and 1 more assertion.
2015-04-21Merge pull request #16147 from Johann-S/event_insertedChris Rebert1-0/+1
Fixes #16124.
2015-04-20Tooltip: Destroy $tip, $arrow, $viewport to avoid memory leakNiels Steenbeek1-0/+6
Closes #16039.
2015-04-08Add event after template insertedJohann-S1-0/+1
2015-03-25Tooltip/popover: Fix auto placement to use viewportAdrien Jarthon1-6/+5
Currently, auto placement is using the container dimensions (if provided) or the element's parent to determine where to open the tooltip: ```javascript var $container = this.options.container ? $(this.options.container) : this.$element.parent() var containerDim = this.getPosition($container) ``` This is quite broken in fact, because the parent element could be just a small div outside the element for example, leading in a totally random placement (placing the tooltip on top even if there's no room). And the container can also be outside of the viewport. This fix simply uses the viewport instead, that's the purpose of the viewport actually, to position the tooltip. So the auto placement should use it to find where there's more room. By default this is body, which is good.
2015-03-16v3.3.2 => v3.3.4Chris Rebert1-2/+2
2015-03-03Hiding an uninitialized tooltip/popover no longer initializes it; fixes #15874Chris Rebert1-1/+1
2015-03-03rm semicolon for sake of fat's eccentric tastesChris Rebert1-1/+1
Erratum from #15496
2015-02-26Tooltip: Avoid creating an unnecessary tooltip when `Tooltip#hide` is calledQuentin Spencer-Harper1-2/+2
Fixed performance bug where a tooltip element is created and then immediately destroyed when tooltip.hide() is called and there is no existing tooltip element Resolves #15557 by merging it.
2015-02-25[Ref #15881] Use Explicit Values rather than ChainKevin Kirsche1-5/+5
[Ref #15881] Use Explicit Values for javascript variables rather than chained ones. From https://github.com/twbs/bootstrap/pull/15881#discussion_r25330647
2015-01-28Merge pull request #15496 from twbs/15484-alternativeChris Rebert1-0/+4
Make $(document).tooltip({...}) without a `selector` throw an error
2015-01-27Fix name of Tooltip.replaceArrow() parameterChris Rebert1-3/+3
isHorizontal => isVertical
2015-01-19bump versionsMark Otto1-2/+2
2015-01-16Fix bogus JSCS warning.XhmikosR1-3/+3
2015-01-05window.Document doesn't exist in IE8Chris Rebert1-1/+1
2015-01-05Make $(document).tooltip({...}) without a `selector` throw an errorChris Rebert1-0/+4
Closes #15484
2015-01-01Happy New Year :santa:Zlatan Vasović1-1/+1
2014-12-29Revert "Allow multiple delegated tooltip selectors on a node"Chris Rebert1-10/+4
This reverts commit 1b3237629a316af41945e20837cf3a332798b264. This reverts PR #14189 because it caused major regressions. Fixes #15168. We'll try to revisit #14167's feature request in Bootstrap v4. [skip validator]
2014-11-12bump version to v3.3.1v3.3.1Mark Otto1-2/+2
2014-10-29version bumpMark Otto1-2/+2
2014-10-26Fix tooltip occasionally not hiding when using a hide delayPhil Hughes1-0/+3
Fixes #14375. Closes #14519 by merging it.
2014-10-26Allow multiple delegated tooltip selectors on a nodeAndrew S. Brown1-4/+10
Fixes #14167. Closes #14189 by merging it.
2014-10-22Follow-up to e2cfbd5: Fix spaces in placement calculationHeinrich Fenkart1-4/+4
2014-10-22Fixes tooltip misplacements in scrollable viewports with auto positioningsaranya.r1-4/+4
Fixes #14756. Closes #14767.
2014-09-24tooltip.js: fix alignmentChris Rebert1-1/+1
2014-09-24Use container instead of parent for tooltip/popover auto-placement calcsChris Rebert1-6/+6
Fixes #14561. Big thanks to @wickstargazer. [skip validator]
2014-09-25Tooltip: Rely on `getBoundingClientRect` for `width` and `height`Heinrich Fenkart1-5/+1
Fixes #14553.
2014-09-17Fix tooltip misplacement with "auto top"saranya.r1-1/+1
Fixes #14322. Closes #14581.
2014-09-13Remove unused Tooltip#validate methodHeinrich Fenkart1-8/+0
2014-09-13Correctly selects arrow placement for a tooltipPeter West1-6/+8
Fixes #13696. Fixes #13696. Fixes #14197. Closes #13718.
2014-09-13Properly fire hidden event when tooltip is destroyedHeinrich Fenkart1-2/+6
Fixes #13031.
2014-09-11Merge pull request #14492 from twbs/ie8-getBoundingClientRectHeinrich Fenkart1-0/+4
Handle lack of .width and .height from getBoundingClientRect() in IE8
2014-09-09Make inDom check of tooltip cross document compatibleHeinrich Fenkart1-1/+1
Fixes #14483
2014-09-08Merge pull request #14242 from hnrch02/remove-aria-describedby-laterHeinrich Fenkart1-3/+3
Remove `aria-describedby` attribute later
2014-09-07Handle lack of .width and .height from getBoundingClientRect() in IE8Chris Rebert1-0/+4
Closes #14093 Correction to #14090 Relevant docs: https://developer.mozilla.org/en-US/docs/Web/API/Element.getBoundingClientRect#Browser_compatibility
2014-09-07Merge pull request #14273 from sgonyea/masterJacob1-0/+5
Fix hover-popover/tooltip flickering when mouse re-enters
2014-08-28Fix hover-tooltip flickering when mouse re-entersScott Gonyea1-0/+5
- is(':visible') seems to be the only reliable check, without a refactoring of how hoverState is used - tests need improvement
2014-08-17Assume Element.getBoundingClientRect() exists; Fixes #14093Chris Rebert1-1/+1
[skip validator]