Skip to content
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

side : bottom-left #698

Closed
BackToPop opened this issue Aug 17, 2017 · 2 comments
Closed

side : bottom-left #698

BackToPop opened this issue Aug 17, 2017 · 2 comments

Comments

@BackToPop
Copy link

Hi,

The version 2.0 was supported : position : 'bottom-left', but the v4.0 not support side : 'bottom-left'.
We get this error :
jquery.tooltipster.min.js: Uncaught TypeError: Cannot read property 'width' of undefined

Thanks

@louisameline
Copy link
Collaborator

Hi, it used to be supported yes, but not anymore. Maybe someone will write a plugin for that some day, it's entirely possible. Thanks

@lavyun
Copy link

lavyun commented Sep 4, 2017

Hi, you can use the functionPosition property to do the same thing, like this:

$tooltipable.tooltipster({
    side: 'bottom',
    functionPosition(instance, helper, position){
        const helperRight = helper.geo.origin.offset.right
        const width = position.size.width
        position.coord.left = helperRight - width
        return position
    }
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants