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 issue #11

Closed
LiNK2088 opened this issue Jul 26, 2015 · 4 comments
Closed

Tooltip issue #11

LiNK2088 opened this issue Jul 26, 2015 · 4 comments

Comments

@LiNK2088
Copy link

The tooltip shows about 30 pixels above the tooltip anchor, making it impossible to put the tooltip on the bottom of the screen.
(this is with the "cursor anchor" option turned off)

@Bunny67
Copy link
Contributor

Bunny67 commented Jul 27, 2015

@LiNK2088
Copy link
Author

That put it right above the anchor.
I did some testing and to make it perfect it has to be like this:

    local point = E:GetScreenQuadrant(TooltipMover)
    if point == "TOPLEFT" then
        tt:SetPoint("TOPLEFT", TooltipMover, "BOTTOMLEFT", 1, -4)
    elseif point == "TOPRIGHT" then
        tt:SetPoint("TOPRIGHT", TooltipMover, "BOTTOMRIGHT", -1, -4)
    elseif point == "BOTTOMLEFT" or point == "LEFT" then
        tt:SetPoint("BOTTOMLEFT", TooltipMover, "TOPLEFT", 0, -14)
    else
        tt:SetPoint("BOTTOMRIGHT", TooltipMover, "TOPRIGHT", 0, -14)
    end

note: I only tested and modified the bottom anchors, the top is not changed.

@Bunny67
Copy link
Contributor

Bunny67 commented Jul 27, 2015

@LiNK2088
Copy link
Author

That also works :D ty

@Bunny67 Bunny67 closed this as completed Aug 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants