Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Non-window Viewport has issues #499

Closed
Craga89 opened this issue Apr 9, 2013 · 3 comments
Closed

Non-window Viewport has issues #499

Craga89 opened this issue Apr 9, 2013 · 3 comments

Comments

@Craga89
Copy link
Contributor

Craga89 commented Apr 9, 2013

Seems as if non-window position.viewport values don't work as expected. Offest positioning bug?

@MaxLap
Copy link

MaxLap commented Aug 8, 2013

I am currently facing this issue, or something similar. In my case, the problem arises when I have a container and a viewport specified. I have made a jsfiddle to demonstrate the problem.
http://jsfiddle.net/DVEDv/63/

In this example, the tooltip is set to display above and to right of the "click here". However, since viewport is specified to the red box, you can see that it should be displayed under the "click here" if viewport worked correcly. Instead it displays above "click here", it will have been moved on the horizontally to fit correctly, but vertically, it doesn't get moved.

  • If you comment the viewport from the JS, the tip appears where it was setup initially. (so it works)
  • if instead you comment the container, leaving the viewport uncommented. Then the tooltip appears under "click here". (so it works)

The css has no impact on this problem and can be commented/removed.

@Craga89
Copy link
Contributor Author

Craga89 commented Aug 8, 2013

Try making the container position: relative http://jsfiddle.net/DVEDv/64/

@MaxLap
Copy link

MaxLap commented Aug 8, 2013

It does work as a workaround so I can use that meanwhile, but is there a fix that can be added to qTip² so that this is not necessary?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants