Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Problem with horizontal scroll
6th February, 18:49
Post: #1
[Solved] Problem with horizontal scroll
Hi, Craig.
example is here: http://jsfiddle.net/VXdTs/77/

The more scrollLeft is, the bigger distance between tooltip's expected and actual positions becomes. The most curiously thing is that almost the same(except scrollbar direction) works fine - http://jsfiddle.net/craga89/VXdTs/34/.
May be is it a bug?Wink

Thank you in advance.
Find all posts by this user
Quote this message in a reply
6th February, 19:04
Post: #2
RE: Problem with horizontal scroll
What browser is this? That works fine for me using latest code. Make sure you've cleared your cache and aren't using a cached version of the nightly 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
6th February, 20:15 (This post was last modified: 6th February 20:19 by evaliauka.)
Post: #3
RE: Problem with horizontal scroll
I think it's reproducible in all browsers (checked in FF10 and chromium16 on linux).
In my example(http://jsfiddle.net/VXdTs/77/ ) steps are following:
1. mouseenter into container. Everything is fine.
2. scroll the container to the right, for example till blah3 (blah3 is in the middle of visible area). Everything is still fine.
3. mouseout of the container. all the tooltips are hidden.
4. mouseenter into the container

Actual result: all tooltips are misplaced. Tooltip of blah4 is displayed near blah3, tooltip of blah3 is behind the scene.

Browser cache is cleared. Latest stable version of qtip2 is used.
Find all posts by this user
Quote this message in a reply
6th February, 20:43
Post: #4
RE: Problem with horizontal scroll
Make sure you're using the element with the scroll attribute set as the tooltip container, otherwise you'll get weird positioning bugs like this. http://jsfiddle.net/VXdTs/79/

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
6th February, 20:56
Post: #5
RE: [Solved] Problem with horizontal scroll
Quote:Make sure you're using the element with the scroll attribute set as the tooltip container
I'm not sure I understand this phrase. What value should scroll attribute have, and attribute of what is it.
Anyway http://jsfiddle.net/VXdTs/79/ is not working.
Find all posts by this user
Quote this message in a reply
7th February, 16:58
Post: #6
RE: [Solved] Problem with horizontal scroll
Woops wrong link: http://jsfiddle.net/VXdTs/80/ What I meant was, make sure to use the element you've got the "overflow: scroll" or similar set on, as the tooltip container.

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
7th February, 18:18
Post: #7
RE: [Solved] Problem with horizontal scroll
I got it. Thank you.
BUT:
replacing
Quote:overflow:scroll

with
Quote:overflow-x:scroll;
overflow-y:hidden;
makes our test case unworking (http://jsfiddle.net/VXdTs/81/ ).
As per your explanation, this variant should be working too.
Find all posts by this user
Quote this message in a reply
7th February, 18:40
Post: #8
RE: [Solved] Problem with horizontal scroll
Seems to work fine here in Chrome and latest FF...

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
7th February, 18:49
Post: #9
RE: [Solved] Problem with horizontal scroll
Steps are the same
Find all posts by this user
Quote this message in a reply
7th February, 19:35
Post: #10
RE: [Solved] Problem with horizontal scroll
You'll need to be more clear about what browser you're seeing this in, and make sure you've cleared your cache too just for safe measure Smile

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
7th February, 19:55 (This post was last modified: 7th February 20:12 by evaliauka.)
Post: #11
RE: [Solved] Problem with horizontal scroll
I'm seeing this in FF10 and chromium16. Cache is cleared Wink.
Most likely, to fix the problem, need to split this code
JS Code
overflow = parent.css('overflow');
if(overflow === 'scroll' || overflow === 'auto') {
	scroll(parent, 1); deep++;
}


into two parts. One will deal with overflow-x, the second - with overflow-y.
This will work in both cases - when overflow option is used and when overflow-(x/y).
As a workaround I can redefine $.fn.qtip.plugins.offset in my code. But the new stable version of qtip2 with fix included would be much better Smile.
Find all posts by this user
Quote this message in a reply
7th February, 21:30
Post: #12
RE: [Solved] Problem with horizontal scroll
Ok I've standardised the offset plugin a bit to fix an issue with overflow container detection. Try out the latest nightly and it should fix this issue.

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
8th February, 04:37
Post: #13
RE: [Solved] Problem with horizontal scroll
Thank you, Craig.
It's working perfect now
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Tooltip width problem in Chrome and Firefox MaudNovembre 2 208 16th April 19:29
Last Post: MaudNovembre
  [Solved] problem in IE Sobek 3 372 26th March 08:22
Last Post: Sobek
  area map problem frumbert 1 480 7th March 17:34
Last Post: Craig
  [Solved] problem with jquery function called inside a qtip content mvillani 1 460 3rd February 14:14
Last Post: Craig
  [Solved] problem with qtip2 modal center position sbommi1 2 462 19th January 20:32
Last Post: sbommi1
  [Solved] Problem with modal and position Unpassant 8 648 13th January 15:24
Last Post: Unpassant
  [Solved] downloading problem jonahvation 1 467 11th January 14:56
Last Post: Craig
  [Solved] Problem with Datepicker + qTip2 (IE) manifestx 3 639 27th December 17:57
Last Post: Craig
  [Solved] iPad: qTip position is incorrect, offset by scroll kiddailey 28 4,334 11th November 01:06
Last Post: andrewd
  [Solved] Problem with fancybox n0ldor 6 972 5th November 12:39
Last Post: n0ldor



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