Position of raidframes keeps resetting #887


Closed
  • Forge_User_73452284 created this issue Nov 5, 2020

     

    Hi,

    When I log into retail, my raidframes are out of position and way higher than they should.

     

    Tried different anchors and options which don't fix the problem.

    However, when I type in the exact y-offset that currently is then the frames go in their "good position". Same goes when I use the rewiew for different layouts.

     

    The same problem happened before the last update of the addon.

    Would be great if you could help me.

     

    Screenshot of my Grid2 settings (German client): https://imgur.com/a/2HyMktE

     

    Addon Version: 18.10.20 r990 Release

  • Forge_User_73452284 edited description Nov 5, 2020
  • Forge_User_73452284 edited description Nov 5, 2020
  • Forge_User_73452284 edited description Nov 5, 2020
  • michaelsp posted a comment Nov 5, 2020

    - Check out the "Clampled to screen" (Am Bildschirm fest machen) option in Apparance tab (must be unchecked).

    - Disable all addons except Grid2 (that can happen if another addon is changing the screen scale).

     

  • Forge_User_73452284 posted a comment Nov 6, 2020

    Hey, thanks for the reply and hint.

    Could be possible that ElvUi is causing this, because it's changing the screen scale like you mentioned.

    Yet, I don't want to dispense with ElvUi, so I rather live with this problem and hope that it can be fixed somehow later.

     

  • michaelsp posted a comment Nov 6, 2020

    Could you disable elvUI for a moment to know if the issue goes away ?

  • Forge_User_73452284 posted a comment Nov 7, 2020

    When I disable ElvUI which had 0.6 UI scale the raid frames are a bit below, but I can't tell you exactly if that fixes the problem, because the standard UI scale is 1 and I don't know if the raidframes are in their good position.

    However, I disabled a second theme, which actually had the same settings except for the scale of the raidframes and now it seems fixed, no matter if I do a reload or relog.

  • slargy767 posted a comment Nov 15, 2020

    Similar issue. I log in, Grid frames aren't in the position I'd set when I'm soloing. If I go in and hit the magnify on any layout it resets to how I want it. Use Elv UI scale 0.71. Not been an issue before, so not sure if something has changed recently. 

    https://imgur.com/a/hmAZ9FC

    This shows how it looks when I first log in then after I magnify on a layout to get it to position as I want to. 


    Edited Nov 15, 2020
  • michaelsp posted a comment Nov 16, 2020

    I have to repeat an important question (not answered yet). Is the issue gone with ElvUI disabled ?

  • Forge_User_74397714 posted a comment Nov 18, 2020

    I don't use ElvUi and experience the same issue ever since prepatch. But it only seems to affect one of my themes


    Edited Nov 18, 2020
  • Hopelez posted a comment Feb 1, 2021

    Similar problems for me since the latest release version 1.1.14. I haven't been using any of the beta versions, so went from 1.0.0 to this new release and now every time I go through a loading screen, my raidframes move to a wrong position. This can be fixed from the options simply by retyping the same position that is already displayed there. I do have an addon that set uiscale to 0.5333 on "PLAYER_LOGIN" or "PLAYER_ENTERING_WORLD". I believe disabling this would most likely fix this, but I don't really see this as a solution. Going back to release 1.0.0 the problem is gone. So it is something that you changed between that release and the latest one.

  • michaelsp posted a comment Feb 4, 2021

    I dont  know what kind of workaround to implement because you did not provide some basic information: the addon name that is changing the uiScale.

    I cannot simply revert the code changes back to version 1.0.0 because some  changes were done to  fix issues with another addons or to implement new features.

     

     


    Edited Feb 4, 2021
  • Hopelez posted a comment Feb 4, 2021

    It is my own addon, and the functionality is basically this (it also does some other things, but that's irrelevant):

     

    local framesetup = CreateFrame("Frame", nil, UIParent)
    
    framesetup:RegisterEvent("PLAYER_LOGIN")
    framesetup:RegisterEvent("PLAYER_ENTERING_WORLD")
    
    framesetup:SetScript("OnEvent", function ()
    	if event == "PLAYER_LOGIN" or "PLAYER_ENTERING_WORLD" then
    		UIParent:SetScale(0.5333)
    	end
    end)

     

     


    Edited Feb 4, 2021
  • michaelsp posted a comment Feb 4, 2021

    In your computer your addon is initializing the screen too late (AceLib  addons are initialized before your addon code is executed). This means you are changing the screen scale when Grid2 window was already placed on the screen, so you must adjust manually the grid2 window or set the scale early. Several fixes:

     

    1. Use the "ADDON_LOADED" event to change the scale (warning this event is fired several times (once per addon) so you must use some flag, check for the addon name or unregister the ADDON_LOADED to avoid initializing the screen a lot of times.

     

    2. Use AceAddon library and initialize the screen scale inside the "OnInitialize" method.

     

    2. After changing the scale readjust Grid2 Position, adding some code like this:

    if Grid2Layout then 
        Grid2Layout:RestorePosition() 
    end 

     Your code is setting the UIParent scale  twice, you can unregister the events after setting the scale to avoid executing the initialization the second time:

    framesetup:UnregisterEvent("PLAYER_LOGIN")
    framesetup:UnregisterEvent("PLAYER_ENTERING_WORLD")

     


    Edited Feb 4, 2021
  • Hopelez posted a comment Feb 5, 2021

    Thank you! I'll try to implement a fix for myself tonight.

  • michaelsp closed issue May 9, 2021

To post a comment, please login or register a new account.