View Single Post
01-06-17, 04:45 AM   #1
Ellypse
Storyline and TRP dev.
 
Ellypse's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 9
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
  Reply With Quote