Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Viewport problem
15th February, 21:44
Post: #1
Viewport problem
I have a div with qtips that have to be showed inside the div.
I thought that the viewport option solves the problem, but after putting the div somewhere down in the page the qtips are showed above the div.

Here is a sample:
http://jsfiddle.net/9yNcd/

Thank you in advance
Find all posts by this user
Quote this message in a reply
15th February, 22:07
Post: #2
RE: Viewport problem
What is it you're trying to achieve exactly?

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
16th February, 12:32
Post: #3
RE: Viewport problem
I have a zone with tags (a tagcloud) and I use qtip to show the description for each tag. I want all the descriptions to appear in that zone, to auto calculate the orientation so it stays inside the div zone.
I don't understand why qtips are showed different if the div is somewhere lower in the page.
Find all posts by this user
Quote this message in a reply
16th February, 22:07
Post: #4
RE: Viewport problem
Looks likes its doing its job to me in that case... you'll need to elaborate a bit more as I'm still not sure why its current behaviour isn't what's expected...

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
16th February, 23:50
Post: #5
RE: Viewport problem
(16th February 22:07)Craig Wrote:  Looks likes its doing its job to me in that case... you'll need to elaborate a bit more as I'm still not sure why its current behaviour isn't what's expected...

It seems it is working fine in Chrome.
I'm attaching the behavior.


Attached File(s) Thumbnail(s)
       
Find all posts by this user
Quote this message in a reply
17th February, 11:34
Post: #6
RE: Viewport problem
(16th February 23:50)dynamicmindset Wrote:  
(16th February 22:07)Craig Wrote:  Looks likes its doing its job to me in that case... you'll need to elaborate a bit more as I'm still not sure why its current behaviour isn't what's expected...

It seems it is working fine in Chrome.
I'm attaching the behavior.

I was wrong about Chrome. It needs an extra <br /> to be showed above.


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
17th February, 21:21
Post: #7
RE: Viewport problem
Make your container relative positioned (or anything other than static): http://jsfiddle.net/craga89/9yNcd/1/

CSS Code
#container: {
	position: relative;
}

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
17th February, 21:49
Post: #8
RE: Viewport problem
(17th February 21:21)Craig Wrote:  Make your container relative positioned (or anything other than static): http://jsfiddle.net/craga89/9yNcd/1/

CSS Code
#container: {
	position: relative;
}

Thank you Big Grin

I had another problem today. I wanted to embed a youtube movie and the sound plays in background after qtip is hidden.
I also tested qtip with youtube api: the first time when qtip it is showed sound stops on hide but after it is hidden the second time the sound still plays.
example: http://craigsworks.com/projects/qtip2/demos/youtube
I would prefer to use object embed for a youtube player because the content is taken from a database and all qtips are generated in the same manner.
Find all posts by this user
Quote this message in a reply
18th February, 02:12
Post: #9
RE: Viewport problem
You'll need to read up on the youTube plalyer API's if you want to use strictly <embed> only instead. Although I would point out the iframe method uses both HTML5 and <embed> as a fallback, so this shouldn't be an issue.

Also, great catch on the bug you found. It seems that FF reloads iframe contents when you toggle its visibility... weird. Any who, I've introduced a work around that's now live on the demo: http://craigsworks.com/projects/qtip2/demos/youtube . Check it out!

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] Tip mimic property doesn't change with flip viewport position.method ikhan 2 15 Today 04:58
Last Post: ikhan
  Hiding tooltip problem sohailanwarpk 2 403 31st January 12:13
Last Post: sohailanwarpk
  [Solved] How to keep tooltip on screen for sure (Yes I have viewport set) mplungjan 2 791 9th September 14:40
Last Post: mplungjan
  [Solved] Starter problem enne87 1 632 12th July 17:29
Last Post: Craig
  [Solved] z-index problem RickardL 3 1,384 31st March 19:48
Last Post: kiddailey
  Simpel problem with qtip SnowJim 4 1,046 22nd February 20:08
Last Post: SnowJim
  [Solved] Newbie problem :( todsa 4 1,071 24th December 01:03
Last Post: todsa
  Problem with tip: 'buttomLeft' amunsen 1 410 29th September 17:30
Last Post: Craig
  Problem with qtip and IE7 cls33 2 1,161 8th September 17:17
Last Post: Craig
  Auto Position problem Alexm 5 2,709 5th August 00:55
Last Post: Craig



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