Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Positioning question
7th December, 11:18
Post: #1
[Solved] Positioning question
Hi,

I like to position the tooltip leftMiddle or rightMiddle depending on if it fits on the screen or not. But if I set position: { corner: { target: 'rightMiddle', tooltip: 'leftMiddle' } } the tooltip will always be leftMiddle/rightMiddle. If I get to the end of the screen the tip arrow will not point to the actual image because the tip has been ajusted upwards.

This is how I want it to work if possible:
The tip shows rightMiddle/leftMiddle as default if it fits on the screen, if the tip is to close to the right side of screen it shows leftMiddle/rightMiddle. If it is to close to the bottom of the screen it shows topRight/bottomLeft, if it is to close to the top of the screen it shows bottomRight/topLeft.

I am using qTip v1.0.0rc3.

/Ola.
Find all posts by this user
Quote this message in a reply
8th December, 15:26
Post: #2
RE: Positioning question
olaw, use the adjust.screen property:

JS Code
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
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  qTip2 themeroller question gmilby 1 33 14th May 17:50
Last Post: Craig
  [Solved] Custom positioning? clorentzen 4 213 10th April 19:06
Last Post: clorentzen
  [Solved] Positioning tooltip inside page dmilne 1 505 30th September 14:56
Last Post: Craig
  [Solved] iPad positioning markedwards 7 2,515 5th September 10:10
Last Post: Boykids
  [Solved] loadContent method DATA question oli.G 1 879 22nd August 18:51
Last Post: Craig
  JS and qtip noob question ArnMan 1 527 5th June 10:28
Last Post: Craig
  Safari qtip positioning grumpygamer 1 700 20th April 13:52
Last Post: grumpygamer
  [Solved] Tooltip positioning issues on thumbnail. escape 2 687 5th April 04:14
Last Post: kiddailey
  [Solved] Newbie Question vballGuy 4 770 31st March 01:37
Last Post: vballGuy
  [Solved] I must be doing something really wrong: very basic question tsutu 2 581 27th March 17:56
Last Post: tsutu



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