|
Screen Adjust tip not working > rev 23
|
|
2nd March, 20:18
(This post was last modified: 2nd March 20:19 by sveiki.)
Post: #1
|
|||
|
|||
|
Screen Adjust tip not working > rev 23
It looks like the screen adjust is a little bit broken after revision 23 (by that I mean 23 works fine).
The tooltip position is being adjusted correctly, but the tip itself is not being changed, remaining as whatever it was specified. (2nd March 20:18)sveiki Wrote: It looks like the screen adjust is a little bit broken after revision 23 (by that I mean 23 works fine). To clarify, rev 24 & 25 don't actually work for me, but the problem exists in 26. |
|||
|
2nd March, 20:53
Post: #2
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
You my friend are a life saver! Just pushed up rev28 which should fix the issue, thanks for catching this!
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
2nd March, 21:12
(This post was last modified: 2nd March 21:26 by sveiki.)
Post: #3
|
|||
|
|||
RE: Screen Adjust tip not working > rev 23
(2nd March 20:53)Craig Wrote: You my friend are a life saver! Just pushed up rev28 which should fix the issue, thanks for catching this! Still not changing the tip position, sorry! Looks like self.cache.overflow.left and self.cache.overflow.top are both undefined when checkTip is called. All of the condition tests resolve to undefined. |
|||
|
5th March, 15:29
Post: #4
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
This is still not working. In r28, self.cache.overflow is never defined except in checkTip, which never executes because self.cache.overflow is undefined.
I don't think the tip size is taken into account during screen adjust positioning either, since I've noticed that the tooltip boxes are being positioned differently: Revision 23: Revision 28: |
|||
|
8th March, 13:53
Post: #5
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
sveiki, I just pushed up a new revision that might address this issue, but it appears to be working quite well for me even in revision 28. Are you positive you've updated the file correctly?
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
9th March, 17:02
Post: #6
|
|||
|
|||
RE: Screen Adjust tip not working > rev 23
(8th March 13:53)Craig Wrote: sveiki, I just pushed up a new revision that might address this issue, but it appears to be working quite well for me even in revision 28. Are you positive you've updated the file correctly? I've definitely updated to 29. Problem still happens, but I can narrow it down I think. when I specify: JS Code
Then it won't adjust at all. If I switch them around, ie: JS Code
Then it WILL adjust the tip for y, but NOT for x. Some more limitations (not all): JS Code
- does not adjust for x JS Code
- does not adjust for x OR y JS Code
- does not adjust for x OR y JS Code
- does not adjust for x etc... |
|||
|
11th March, 17:25
Post: #7
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
sveiki, could you update to the latest branch release please (rev32 as of this writing). This should fix your problem.
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
11th March, 19:21
(This post was last modified: 11th March 19:25 by sveiki.)
Post: #8
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
It looks like the positioning is taking the tip into account now, but the tip placement isn't changing on screed adjust. The position of the tip never changes from what is specified in the creation call. This is especially bad when I use a bottomMiddle tip pointing to topMiddle of target. When screen adjust *should* change it to a bottomLeft tip pointing to topRight of target, it doesn't change the tip position, and the tip now points way past the right end of the target.
Just as troubling is that (on FF 3) the tooltip is not being repositioned based on viewport size, but on document size. It is being repositioned properly in IE6. I just updated to rev 34. Same problems exist. |
|||
|
18th March, 13:45
Post: #9
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
Is there any more information you need from me on this? I can try to pare down my application to a small example that highlights the issue, if that helps.
|
|||
|
18th March, 21:13
Post: #10
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
I'm having the same problem (rev. 34). It works if you use the default position.corner settings. However, using the following settings the screen adjust feature no longer works.
JS Code
|
|||
|
22nd March, 19:56
Post: #11
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
The problem is probably rooted in the adapt.left and adapt.top functions.
There's a few issues here:
Is a fix for these issues on your list to get done, by any chance? |
|||
|
25th March, 20:07
(This post was last modified: 25th March 20:18 by sveiki.)
Post: #12
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
I went over the code to see if I could fix this myself. I've got it working fine now (see attached diff with revision 41).
The only thing I'm not entirely sure about is the use of the options.position.adjust.x / options.position.adjust.y. I don't now if the implementation means always adjust x by that value or if negative always means away from the target in the left/top direction (if my.x is left/top). In the rev 41 code for adapt.top and adapt.left, that *seems* to be the case. But I don't know how to handle it then if you screen adjust to my.x/my.y = 'middle' from a different value, what do you do with the options.position.adjust.x/y then? Please correct my implementation as you see fit. |
|||
|
25th March, 21:42
Post: #13
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
I noticed a mistake or two. I wasn't taking into account situations where my original implementation would try to put things at my.x = 'center' AND my.y = 'center'. Fixed that.
Also made a mistake in repositioning for adapt.top in some cases (used x values instead of y values). Here is the updated version. |
|||
|
25th March, 22:59
Post: #14
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
I'm working on some additional corrections, stay tuned.
|
|||
|
26th March, 00:11
Post: #15
|
|||
|
|||
RE: Screen Adjust tip not working > rev 23
(25th March 22:59)sveiki Wrote: I'm working on some additional corrections, stay tuned. Okay, I made some more significant changes to my fix. If adjusting to one side will cause the qTip to overflow on that side, it'll pick whichever side minimizes the cut-off. The fix now takes into account the border radius when adjusting. I don't think earlier revisions (<= 23) took that into account, either. |
|||
|
27th March, 11:49
Post: #16
|
|||
|
|||
|
RE: Screen Adjust tip not working > rev 23
Screen adjustment fixes have been pushed up to revision 42, thanks Jeremy.
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| qtip only working the first time | harjits | 2 | 26 |
21st May 23:31 Last Post: Craig |
|
| Dynamic contenct not working property in sortable | cleung | 5 | 743 |
8th December 18:45 Last Post: Craig |
|
| Youtube demo not working on ffox 6 & 7 | ivanmayes | 2 | 697 |
11th October 17:14 Last Post: ivanmayes |
|
| [Solved] Why is this not working - Link nested in tooltip | needed | 1 | 549 |
12th September 17:10 Last Post: Craig |
|
| [Solved] How to keep tooltip on screen for sure (Yes I have viewport set) | mplungjan | 2 | 795 |
9th September 14:40 Last Post: mplungjan |
|
| [Solved] Blanket Destroy not working | migdalskiy | 2 | 514 |
22nd August 22:44 Last Post: migdalskiy |
|
| Unfocus Not Working | biglesliep | 1 | 766 |
13th August 12:50 Last Post: Craig |
|
| Simple working example? | PeterY | 2 | 958 |
7th August 20:18 Last Post: kiddailey |
|
| very simple working example? | solitario | 3 | 2,649 |
7th August 20:16 Last Post: kiddailey |
|
| styles and pointy position not working | danbuntu | 1 | 944 |
27th July 23:17 Last Post: Craig |
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help





