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

ECS Window Positioning #324

Open
k-hell opened this issue Jul 11, 2024 · 0 comments
Open

ECS Window Positioning #324

k-hell opened this issue Jul 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@k-hell
Copy link

k-hell commented Jul 11, 2024

Bug description

Tried to make window width bigger but it moves into the character frame

Screenshots

image

Version

v3.3.4
Classic Era

Code

On line 103 in Modules/Stats.lua, I did a "small hack", tried to do it elsewhere but nothing would work so this was my solution...
I'm sure these values could be better or figure out why it grows inside instead of out, would be a good start...
Funny thing is with this "hack", it grows out?

if ECS.IsSoD then
            C_Timer.After(0.3, function ()
                if EngravingFrame then
                    mainFrame:ClearAllPoints()
                    mainFrame:SetPoint("LEFT", EngravingFrame, "RIGHT", 10, 19)
                end
            end)
        else -- the hack
            C_Timer.After(0.3, function ()
                if PaperDollItemsFrame then
                    local __x = 2
                    local __y = 2
                    mainFrame:ClearAllPoints()
                    mainFrame:SetPoint("LEFT", PaperDollItemsFrame, "RIGHT", ecs.general.window.xOffset + __x, ecs.general.window.yOffset + __y)
                end
            end)
        end
    end)
@k-hell k-hell added the bug Something isn't working label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant