wintercounter / Protip

A new generation jQuery Tooltip plugin
http://protip.rocks
MIT License
359 stars 38 forks source link

Is the gravity data-pt-gravity attribute working? #7

Closed egosbry closed 9 years ago

egosbry commented 9 years ago
<a href="#bar" class="protip" data-pt-gravity="left" data-pt-title="You must be at least 18!">
    Go to the bar!
</a>

This config will still let the tooltip appear on the right side. Please advice...

wintercounter commented 9 years ago

It was a bug when min-width calculation applied. Now it should be fixed, thanks for the report, and feel free to reopen the ticket if you notice further issues.

egosbry commented 9 years ago

Thanks for quick fix.

But the tooltip is now gone wild when it has a lot of content for about more than 7 paragraph.

I can't re-open this thread.

wintercounter commented 9 years ago

Do you have any public link to show the issue?

egosbry commented 9 years ago

Nope. Can you try to re-produce on one of your demos? Just insert huge text and apply the controlled gravity e.g. bottom-left; bottom-right

Thanks

wintercounter commented 9 years ago

A screenshot maybe? Anyway, I've tried to guess your issue and added a "fix", would you please try again?

egosbry commented 9 years ago

much better now but it overflows even it still have available space on the left side

screen shot 2015-10-01 at 6 27 15 pm

wintercounter commented 9 years ago

I've played with lots of contents now, but couldn't find any issues so far. It's also hard to see anything from the screenshot. Where is the source element on the screenshot, and what is the tooltip position?

egosbry commented 9 years ago

can you resize your browser in any sizes and see if occurs.

wintercounter commented 9 years ago

I've tried, but no success. Still trying :)

wintercounter commented 9 years ago

TeamViewer maybe if it's not confidential?

wintercounter commented 9 years ago

Or please send me the exact HTML you're using. Maybe an issue with a parameter...

egosbry commented 9 years ago

how about adding attribute data-pt-width="700"

wintercounter commented 9 years ago

It's working fine for me with both 700 and 700!

wintercounter commented 9 years ago

https://gitter.im/DoclerLabs/Protip

Maybe we would find the issue faster in chat.