Padding setting causes frames to move when entering battlegrounds. #862


  • Fixed
Closed
  • Irisia_ created this issue Aug 6, 2020

    What version of Grid2 and game type (classic or retail) are you using ?

    r955 on retail

     

    What game client version (windows or mac) and language are you using ?

    Windows 10, english.

     

    What steps will reproduce the problem?

     

    The following settings:

    Layout Anchor: TOP

    Group Anchor: TOPLEFT

    H. Position: 0

    V. Position: -920

    Border and background: None

    Spacing: 0

    Padding: 2 (This is what's causing the issue)

     

    With the above settings, when entering a battleground the frames will move upwards the same number of pixels the padding is set to. Example: Padding set to 2 and vertical position at -920, when you enter a battleground the vertical position will change to -918. 

     

    Did you try having Grid2 as the only enabled addon and everything else disabled?

    Yes.

     

    Was it working in a previous version? If yes, which was the last good one?

    No, been around since at least legion.

     

    Do you have an error log of what happened? If you don't see any errors, make sure that error reporting is enabled (`/console scriptErrors 1`) or install [BugSack](https://mods.curse.com/addons/wow/BugSack).

    No lua errors.

     

    Please provide any additional information below.

    I initially posted about the issue on mmo-champion, I think all the relevant information is listed above, but here is the link just in case: https://www.mmo-champion.com/threads/2563066-Grid2-frames-moving-on-its-own

    I used to have the frames on the right side of my screen (about a year ago) and I had the same issue back the. However, the frames were moving left instead of up (probably still the padding setting causing it, as I've always had it set to 2.)

     

    Hopefully this is something that can be fixed, as padding set to 0 is not looking too hot. 

     

    Thanks for reading and always keeping Grid2 working, best raid frame addon by far and the only one I couldn't live without! :)

  • michaelsp posted a comment Aug 7, 2020

    Is the "General/Appearance/Clamped to Screen" option checked or unchecked ? If the toggle is checked try unchecking the option.


    Edited Aug 7, 2020
  • Irisia_ posted a comment Aug 7, 2020

    I had Clamped to Screen turned on. Just tried with it turned off and Padding set to 2, and the frames moved just like before.

  • michaelsp posted a comment Aug 7, 2020

    Try r972-alpha version.

    For future reference: When a battleground is loaded the SecureGroupFrames headers become empty for an instant  (not even the player exists), the addon calculates a negative width or height for the Grid2 window in this case when padding>0 and spacing<padding ,  and the game moves the frame when a negative width or height is assigned. Added a sanity check in the code, no negative values are allowed now.

     


    Edited Aug 7, 2020
  • Irisia_ posted a comment Aug 7, 2020

    Tried the r972-alpha version with my usual layout and the frames are not moving anymore.

     

    Thank you!

  • michaelsp closed issue Aug 7, 2020
  • michaelsp added a tag Fixed Aug 7, 2020

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