Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qTips flowing off edge of screen
2nd April, 21:43
Post: #1
qTips flowing off edge of screen
If a qTip is generated near the edge of the page, it will extend the boundaries (stretch the page), and some of the contents may be hidden.

Isn't there a way to have it detect whether or not it will flow off the page, and "snap" to the outermost boundary automatically?
Find all posts by this user
Quote this message in a reply
2nd April, 22:05
Post: #2
qTips flowing off edge of screen
You could try turning on screen adjustment, which will stop it going off-screen if possible:

JS Code
$('.selector').qtip({ position: { adjust: { screen: true } } });

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
9th April, 03:52
Post: #3
qTips flowing off edge of screen
Hi!

Just getting familiar with jquery plugins....

Has anyone tried this yet? Does it work well? Where does it work?
Love to hear feedback!
=)
Find all posts by this user
Quote this message in a reply
14th April, 00:09
Post: #4
qTips flowing off edge of screen
So in the jquerey.qtip.min.js, I've changed the
JS Code
adjust:{x:0,y:0,screen:false}

to read
JS Code
adjust:{x:0,y:0,screen:true}


and for the separate popup.js,whose functions section looks like this:
JS Code
$( function(){
      var popups = $("."+CSU.popup.baseClass);
      popups.each( function(i,v){ $(this).qtip({
         content: { url: $(this).attr("href") },
            position: {
               corner: {
                  target: 'bottomRight',
                  tooltip: 'topLeft'    }
                  },
            style: { width: 300, name: 'cream', tip: 'topLeft'  }
      }); } );
    }   );



I've tried to add the adjust in here too:

JS Code
position: {
 
adjust: { screen: true },
 
                  corner: {
                  target: 'bottomRight',
                  tooltip: 'topLeft'    }
                  },


And getting the error in greasemonkey for line 148 "self.options undefined"

Am I completely off track??
Any direction would be awesome!
Find all posts by this user
Quote this message in a reply
14th April, 00:23
Post: #5
qTips flowing off edge of screen
That should be ok at a glance, what file is the greasmonkey error occuring in? The qTip file or yours?

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
14th April, 00:39
Post: #6
qTips flowing off edge of screen
Thanks for the fast reply!!

Yup, no error when I load the html page, but when I try to rollover a link. None of the boxes display,but you can tell that it is trying to locate (GET) all those html popups we've created.

Should I also be adding something to the var of the popup.js as something is undefined? I am using 1.0.0-beta3, and tried 1.0.0-beta4 with equal non-success. I really appreciate the feedback!
Find all posts by this user
Quote this message in a reply
14th April, 00:43
Post: #7
qTips flowing off edge of screen
Do you get the same error when using beta4 by any chance? Or is it a different one? If so could you post the line number for beta4 so I can track down the offending code.

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
14th April, 01:47 (This post was last modified: 14th April 01:51 by j_user.)
Post: #8
qTips flowing off edge of screen
Yes the same no-show problem, but Greasemonkey doesn't actually show a specific error with beta4 I'm sorry, only letting you know that it 'GOT' the html files, so progress?

On beta4 trial now I am getting some popups working, at random. And they are adjusting position from the sides of the screen nicely. (yay!) FYI:I have 60+ tooltips for this large diagram

Exact same code on those links as the ones not functioning, and very random. I had this issue with beta3, in that in order to get all links working I had to copy and paste working links on the page and rename, I know myself it shouldn't need that with exact code, but it made it work. I will copy and paste and see how it goes, thank you again for the fast response and I hope this helps with debugging!
Find all posts by this user
Quote this message in a reply
14th April, 04:02
Post: #9
qTips flowing off edge of screen
Update:
Checked your documentation page again, have placed <script> tags near </body> rather than head, the random speed issues were attributed to using jquery 1.2.6, have tested 1.3.2, with beta4 qtip, and is now WORKING in IE6, 7 & Firefox 3.

(*small dance*)

Thanks again for the help!!!
Find all posts by this user
Quote this message in a reply
14th April, 13:55
Post: #10
qTips flowing off edge of screen
Glad to know you got it all sorted elamberdor! jQuery 1.3 is a great update and I'm glad to see you updated! Sorts a lot of the problems when dealing with large amounts of qTip's on the page, which is why I'm planning on stopping 1.2 support in post-1.0 releases.

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [solved] Trouble with qtips adding a scrollbar momentarily to window patricia 0 147 2nd December 19:40
Last Post: patricia
  Changing HTML Content on Click & Remove/Reinit qTips ifthatdoesntdoit 5 862 17th November 09:46
Last Post: ifthatdoesntdoit
  [Solved] How to keep tooltip on screen for sure (Yes I have viewport set) mplungjan 2 549 9th September 14:40
Last Post: mplungjan
  [Solved] multiple qtips and 1.4.2 - popup not being removed michaelg 9 2,385 11th May 13:57
Last Post: cooldeeps
  qTips no showing in IE7 adrielcrv 3 947 9th May 14:06
Last Post: Craig
  [Solved] modal qTip taller than screen, are scrollbars possible? perlguy 3 2,138 6th March 22:26
Last Post: skjoldby
  [Solved] Using 2 qtips on 1 element with different triggering events David 4 1,733 8th February 22:22
Last Post: ramalaks
  [Solved] My QTips not working on IE7 designlucas 2 697 Today 14:40
Last Post: designlucas
  [Solved] Edge of tooltip over embedded youtube video jazbek 0 725 30th January 07:20
Last Post: jazbek
Exclamation qTips and Wordpress davidcsonka 2 1,647 19th January 13:15
Last Post: GuillaumeL



User(s) browsing this thread: 1 Guest(s)