Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip misalignment w/ Horizontal Scrolling #15590

Closed
ghost opened this issue Jan 16, 2015 · 7 comments
Closed

Tooltip misalignment w/ Horizontal Scrolling #15590

ghost opened this issue Jan 16, 2015 · 7 comments

Comments

@ghost
Copy link

ghost commented Jan 16, 2015

MacBook Pro 2.3 ghz Core i7
Mac OSX 10.9.5
Google Chrome (version 42.0.2278.0 canary (64-bit))
Safari (version 7.1 (9537.85.10.17.1))
Mozilla Firefox (version 34.0.5)

When creating wide data tables with many td elements, the tooltip does not align with corresponding far right td elements when the frame is scrolled horizontally. The td elements that reproduce the issue must be made visible by scrolling horizontally.

http://jsfiddle.net/benkennedy/Ld0ptsov/1/

  1. Load the JSFiddle page
  2. Shrink the fourth pane (bottom right pane) to the point where you only see half of the table.
  3. Hover on the first td element, and notice the tooltip is working as expected.
  4. Scroll horizontally to the far right, and hover over the last td element. Notice the tooltip is not in the expected location.

This issue looks like it may be located in the Tooltip.prototype.getPosition method, more specifically - width: $(window).width().

@cvrebert
Copy link
Collaborator

Confirmed on OS X in Safari 8.0.2, Chrome, and Firefox.

@ericmartel
Copy link

This might be fixed by this PR #15494

I'm at work, I'll check it when I get home tonight

@ericmartel
Copy link

I confirm that PR #15494 does not fix the issue. If I have time today I will investigate the issue further.

@xak2000
Copy link

xak2000 commented Feb 4, 2015

Confirmed on Win7 in last versions of Chrome and Firefox.

@mdo
Copy link
Member

mdo commented Jun 18, 2015

Punting as a won't fix—v4 includes a new positioning library for our affix, tooltips, and popovers.

@low-on-mana
Copy link

Is there any quick fix for this issue ?

@cvrebert
Copy link
Collaborator

cvrebert commented Apr 1, 2016

#15686, perhaps.

@twbs twbs locked and limited conversation to collaborators Apr 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants