|
[Solved] Offset the arrow/tip
|
|
2nd November, 16:36
Post: #1
|
|||
|
|||
|
[Solved] Offset the arrow/tip
I am trying to offset the arrow or tip of the tooltip. I want to offset the whole tooltip x = .20. Then I want to move the tip and move it out of the corner 20px. (see attachment)
I hope this is self explanatory |
|||
|
3rd November, 00:53
Post: #2
|
|||
|
|||
|
RE: Offset the arrow/tip
drc37, use the .ui-tooltip-tip class to apply an offset
![]() CSS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
4th November, 08:55
Post: #3
|
|||
|
|||
|
RE: Offset the arrow/tip
A couple of caveats, if you don't mind, Craig (since I've spent some time recently playing with this):
This is just another awesome example of how flexible qTip really is
|
|||
|
4th November, 15:11
Post: #4
|
|||
|
|||
|
RE: Offset the arrow/tip
kiddaily, spurred on by your question I've introduced a new offset option to the tips plugin! Check it out:
JS Code
It adjusts the tooltip positioning for automatically and even adjusts properly with screen positioning! Let me know what you think
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
4th November, 15:15
Post: #5
|
|||
|
|||
|
RE: Offset the arrow/tip
Is there a way to specify what type of tip (corner or center). I would like to use the "top left" and then use the offset with the center tip.
I hope this is self explanatory. I can make it work with what has already been given above. But it would just be simpler the other way. Thanks for your prompt help and updates, David (4th November 15:11)Craig Wrote: kiddaily, spurred on by your question I've introduced a new offset option to the tips plugin! Check it out: |
|||
|
4th November, 18:01
(This post was last modified: 4th November 18:14 by kiddailey.)
Post: #6
|
|||
|
|||
RE: Offset the arrow/tip
(4th November 15:15)drc37 Wrote: Is there a way to specify what type of tip (corner or center). I would like to use the "top left" and then use the offset with the center tip. In theory, all you'd need to do is specify the style.tip.corner setting to be "top center" and then use the new offset value to shift it with a negative value. (4th November 15:11)Craig Wrote: kiddaily, spurred on by your question I've introduced a new offset option to the tips plugin! Check it out: ... That's a perfect addition! The only catch is that it doesn't seem to work with when you use the "center" positions of the tips, which is what drc37 is looking for (and what the old way you mentioned, with my additional notes, does). For example, both of these yield the correct look, but the position of the qTip cannot be adjusted so that the tip is pointing correctly: JS Code
If we instead try to shift the qTip itself, the position.adjust.x doesn't seem to work properly anymore when the tip offset is included: JS Code
|
|||
|
5th November, 17:00
(This post was last modified: 5th November 17:00 by drc37.)
Post: #7
|
|||
|
|||
|
RE: [Solved] Offset the arrow/tip
Thanks for all the help. Here is my final code (see image):
JS Code
AND JS Code
|
|||
|
5th November, 17:15
Post: #8
|
|||
|
|||
|
RE: [Solved] Offset the arrow/tip
Ah - I see you used the CSS to work around the bug in the position shifting. Forgot about doing that
|
|||
|
10th November, 00:57
Post: #9
|
|||
|
|||
|
RE: [Solved] Offset the arrow/tip
Don't forget about the mimic option guys! It allows you to specify what type of tip to draw independant of the corner!
JS Code
This will draw the top center tip at the top left corner. Brilliant! You can even specify only a single x or y type so it will adjust properly with the screen adjustment: JS Code
Have a play and let me know if you find any bugs! Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
10th November, 03:13
Post: #10
|
|||
|
|||
|
RE: [Solved] Offset the arrow/tip
Thanks, for the help.
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help





