-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add dynamicPlacement
tooltip option
#8398
Conversation
Would this also work for popover by extension? |
@ncatanchin As with the original pull request, indeed it does. |
Worthy alternative: #7996 |
why not just piggy back on the placement option?
|
@@ -1167,6 +1168,29 @@ | |||
var actualWidth = $tip[0].offsetWidth | |||
var actualHeight = $tip[0].offsetHeight | |||
|
|||
if (this.options.dynamicPlacement) { | |||
var con = this.$element.parent() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
con?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$parent is a better name
This is a port to the latest 3.0.0-wip (with some cosmetic code changes) of #6848 by Nick Roberts <nick@utropicmedia.com> (@nickroberts)
@fat: Because, as currently written, it uses |
got a version of this in 3.0.0 - thanks |
217eb98 Cool. |
In light of @nickroberts having had to wait ~5 months to get action on his pull request from @fat, I've taken the liberty of porting (with some cosmetic code changes) #6848 to the current latest
3.0.0-wip
, to save him the trouble.The automated tests still pass and it indeed seems to work based on limited manual testing.