· 1 min read
qTip2 – Tip plugin’s dimension options updated
First published on my old blog (blog.craigsworks.com) in August 2012, and kept as it was written. Some code and links are out of date.
For those of you using the qTip2 nightly builds, as of commit 970cfabacd the tip plugin’s width and height options have changed slightly to become relative to the tips position on the tooltip.
“relative to the tips position”?!
When the position of the tip is on the horizontal sides of the tooltip i.e. the left or right, the width and height are switched. This is done to ensure the tip dimensions stay as you’d expect no matter what position the actual tooltip is in.
To demonstrate this, see the jsFiddle example below of the past and current implementations.