WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   PTR UI Bugs (https://www.wowinterface.com/forums/forumdisplay.php?f=176)
-   -   7.1 dropdowns get closed on WORLD_MAP_UPDATE (https://www.wowinterface.com/forums/showthread.php?t=54979)

Ellypse 01-06-17 04:45 AM

7.1 dropdowns get closed on WORLD_MAP_UPDATE
 
Hi all.

I noticed since 7.1 that if you open the world map and open any dropdown in the UI (from the world map frame or any other frame) the dropdown will suddenly close itself.

After doing some digging I found that it happens every time WORLD_MAP_UPDATE is fired (every few seconds, for world quest stuff I guess). I have traced down the issue to the WorldMapLevelDropDown_Update() function being called by WorldMapFrame_UpdateMap(). I have not gone farther but something inside this function makes any opened dropdown closed (maybe UIDropDownMenu_Initialize() ?).

I have an add-on that adds options to the map filter dropdown menu and I got users reporting me this bug so I ended up implementing a custom fix that just check if DropDownList1 is visible before calling WorldMapLevelDropDown_Update().

Code:

local oldWorldMapLevelDropDown_Update = WorldMapLevelDropDown_Update
function WorldMapLevelDropDown_Update()
        if not DropDownList1:IsVisible() then
                oldWorldMapLevelDropDown_Update();
        end
end


Ellypse 02-01-17 02:52 PM

Fixed
 
This issue has been fixed on PTR 7.2 build 23478 :)
(See changes to WorldMapFrame.lua)


All times are GMT -6. The time now is 10:45 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI