fullcalendar positioning fails #794

Open
rodrigoguerrasa opened this Issue Jun 9, 2016 · 2 comments

Projects

None yet

3 participants

@rodrigoguerrasa

The full calendar integration is not working properly. The tooltip is not being positioned correctly when the calendar event is clicked.

Even the demo in fiddle is not working correctly. http://jsfiddle.net/qTip2/N78hs/

Any idea how to do a quick fix for this?

@loopingGIT

I had the same issue, I change the target value on position from 'mouse' to 'event' and now at least it show where it should. here is the code from the demo, I changed a few values, but is basically the same:

// Setup Tooltip
var tooltip = $('<div/>').qtip({
            id: 'calendar',
            prerender: true,
            content: {
                text: ' ',
                title: {
                    button: true,
                    text : ' ',
                }
            },
            position: {
                my: 'bottom center',
                at: 'top center',
                 target: 'event', //here is the change
                viewport: $('#calendar'),
                adjust: {
                    mouse: false,
                    scroll: false
                }
            },
            show: false,
            hide: false,
            style: {
                classes: 'qtip-bootstrap qtip-shadow'
            }
}).qtip('api');
@Dmitrev
Dmitrev commented Nov 24, 2016

@loopingGIT Thanks a lot, you just saved me alot of time!

For future reference i updated the original JSBin:
http://jsfiddle.net/N78hs/1517/

Hopefully this will be helpful to others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment