Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] QTIP in IE8 not pointing to spot it should
19th July, 19:40 (This post was last modified: 19th July 19:41 by scylla.)
Post: #1
[Solved] QTIP in IE8 not pointing to spot it should
Please see attached image.

Now the fun part is the second time I hover its correct. Just the first time it points to the wrong spot and not always is it wrong the first time either.

[Image: ar5Ln.png]
Find all posts by this user
Quote this message in a reply
20th July, 08:04
Post: #2
RE: QTIP in IE8 not pointing to spot it should
Make sure you have a set width/height for the image, otherwise you'll get positioning issues.

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
20th July, 12:38
Post: #3
RE: QTIP in IE8 not pointing to spot it should
Ahh. I am not doing that on the images. I will add that code.

For all browsers except IE it works find without the width/height properties set.

Is this a known problem in IE?
Find all posts by this user
Quote this message in a reply
20th July, 13:28
Post: #4
RE: QTIP in IE8 not pointing to spot it should
Not so mcuh a problem as it is a side effect of not supplying dimensions to images explicitly. It's recommended you do this anyway since if you don't, the image triggers a full page reflow once it's dimensions are known.

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
21st July, 16:08 (This post was last modified: 21st July 16:57 by scylla.)
Post: #5
RE: [Solved] QTIP in IE8 not pointing to spot it should
Thank you Craig, awseome support.

I will post a followup once I do the code changes to let you know if it fixed it for my case.
(21st July 16:08)scylla Wrote:  Thank you Craig, awseome support.

I will post a followup once I do the code changes to let you know if it fixed it for my case.

It is still not working, here are two screenshots. First one IE, second Firefox

IE
[Image: uwXGR.png]


FF
[Image: qiDnv.png]

And here is my QTIP function:
JS Code
function doQTip()
{
		// Select all elements that are to share the same tooltip
	var elems = $('img[title]')
 
	// Store our title attribute and remove it so we don't get browser tooltips showing up
	.each(function(i) {
		$.data(this, 'oldtitle', $.attr(this, 'title'));
	})
	.removeAttr('title');
 
	// Create the tooltip on a dummy div since we're sharing it between targets
	$('<div />').qtip(
	{
 
		content: ' ', // Can use any content here <img src="images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" />
	   	position: {
	      target: 'event', // Use the triggering element as the positioning target
	      my: 'left center',
	      at: 'right center',
	      adjust: { x:-13 },
	      viewport: $(window)         
	   	},
/*	   
	   		position: {
			target: 'event', // Use the triggering element as the positioning target
			adjust: { y:-36 },
			viewport: $(window)			
		},
*/
		show: {
			target: elems,
			solo: true
		},
		hide: {
//			when: 'mouseout',
			target: elems,
			fixed: true,
			delay: 0
		},
		style: {
			border: {
         		width: 3,
         		radius: 8
	        },
			width: 320,
			classes: 'ui-tooltip-shadow', // Optional shadow...
			tip:  {corner : true, height:24, width:12 } // 'left top' is what I had when working
//			tip:  'left top'  // is what I had when working
			/*
			 * The important part: style.widget property
 
			 * This tells qTip to apply the ui-widget classes to
			 * the main, titlebar and content elements of the qTip.
			 * Otherwise they won't be applied and ThemeRoller styles
			 * won't effect this particular tooltip.
			 */
//			widget: true // this is supposed to do our look and feel and it does not
		},		
		events: {
			show: function(event, api) {
				// Update the content of the tooltip on each show
				var target = $(event.originalEvent.target);
				api.set('content.text', target.attr('title'));
//				api.set('content.title.text', 'This is a title');
			}
		}
	});
 
}
Find all posts by this user
Quote this message in a reply
21st July, 18:46
Post: #6
RE: [Solved] QTIP in IE8 not pointing to spot it should
Does the position update properly when you resize the browser?

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
21st July, 18:49 (This post was last modified: 21st July 18:59 by scylla.)
Post: #7
RE: [Solved] QTIP in IE8 not pointing to spot it should
(21st July 18:46)Craig Wrote:  Does the position update properly when you resize the browser?

The qtip popup closes when not hovering over image or popup, so I can't resize the browser..

However - After the FIRST mouseover the position is always right.

It is only the first time the image is ever seen by IE. All subsequent moveover events positioning is accurate as in the Firefox picture I provided.
Find all posts by this user
Quote this message in a reply
21st July, 19:19
Post: #8
RE: [Solved] QTIP in IE8 not pointing to spot it should
Hmm this is happening even with the image dimensions set with width/height attributes?

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
21st July, 19:22 (This post was last modified: 21st July 19:53 by scylla.)
Post: #9
RE: [Solved] QTIP in IE8 not pointing to spot it should
(21st July 19:19)Craig Wrote:  Hmm this is happening even with the image dimensions set with width/height attributes?

Yes. I triple checked image properties that image and width attributes are set.

I set it in PHP before it ever gets to the browser.
I am not running the latest build, I am doing one from MARCH.

Could it be that? Smile
I tried upgrading to lastest nightly build and now I get this:

my qtip code from 2-3 posts ago is the same, just updated .js and .css

[Image: DB3Ob.png]

So I don't know if latest version would fix my IE problem since the whole qtip stops working right with the latest Smile
Find all posts by this user
Quote this message in a reply
22nd July, 12:33
Post: #10
RE: [Solved] QTIP in IE8 not pointing to spot it should
O_o that looks very odd, can you link me to a live page please?

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
22nd July, 13:42
Post: #11
RE: [Solved] QTIP in IE8 not pointing to spot it should
(22nd July 12:33)Craig Wrote:  O_o that looks very odd, can you link me to a live page please?

I agree. It does look very odd.

Unfortunately this is a USA federal website in development for the National Library of Medicine and not available for public release yet and is thus behind 4000 firewalls.

I *think* we may have a an early release of the site up and running in a week or so.

Any suggestions on how to move forward given the firewall issues?

I'd rather not go public with the IE bug and of course with the latest nightly build it doesnt work at all.
Find all posts by this user
Quote this message in a reply
22nd July, 19:36
Post: #12
RE: [Solved] QTIP in IE8 not pointing to spot it should
Oh wow, ok well... can you check using Firebug or similar the stylesheet is included properly and then check whether the tooltip content has any weird CSS styles pplied, like float or position: absolute?

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
22nd July, 22:45
Post: #13
RE: [Solved] QTIP in IE8 not pointing to spot it should
I am PMing you the info to login. The URL and its password protected website.

This version you will see is using the MARCH build.
Find all posts by this user
Quote this message in a reply
25th July, 19:20
Post: #14
RE: [Solved] QTIP in IE8 not pointing to spot it should
As a note to anyone reading this thread. This bug I am having exists in IE9 as well. Just tested and confirmed same exact problem. I wish IE would just GO AWAY!
Find all posts by this user
Quote this message in a reply
8th November, 17:07
Post: #15
RE: [Solved] QTIP in IE8 not pointing to spot it should
I searched these forums to try to find a solution to this problem in IE9. Good to know that I'll definitely need to add width/height for IE7-8 since I haven't yet tested them.

I'm grabbing my image URLs from an API so don't have the dimension information. I'll need to run them through PHP's getimagesize() to determine the proper dimensions before generating the HTML. Not too difficult - in thanks to that function.

However, in testing this bug with IE9, I also noticed that rounded corners were not being generated and the box-shadow looked crappy, as if it was DirectX generated. In fact it was. I looked up and saw that IE9 was in compatibility mode because I had errors in my HTML. IE9 was in quirks mode.

Double check your HTML and make sure it passes validation. If it does, it should work a lot better (and IE9 did not display this bug afterwards).

I know I'm bumping this rather old post, but if someone else is searching, hopefully it'll help 'em out.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] unwanted modal delay, when content contains image, IE8 and lower. oldie85 1 291 21st February 04:44
Last Post: Craig
  tip corner looks bad in IE8 taluk 1 293 6th February 17:59
Last Post: Craig
  [Solved] Within ie8 can not nav to submit button in qtip nestor49 2 369 23rd January 17:46
Last Post: nestor49
  QTip2 + JQuery Full Calendar + IE8, 7, and 6 = Not Working Swede78 2 707 6th December 00:40
Last Post: Swede78
  [Solved] Problems with IE8 and modal dialog - jquery problem?! tangente 1 1,418 19th September 16:56
Last Post: Craig
  Misses the point spot in chrome/ff lessless 2 771 1st September 16:51
Last Post: lessless
  IE7 and IE8 compatibility mode my: bottom center not showing correctly DotnetShadow2 0 1,126 16th August 03:58
Last Post: DotnetShadow2
  IE7 issues IE8 doynie 0 700 8th June 09:34
Last Post: doynie
  IE8 Issues plastic 7 1,458 8th June 08:04
Last Post: plastic
  [Solved] Modal tooltips not working in IE8, everything gets black. Shafaat 4 1,201 7th June 18:41
Last Post: Craig



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