SL-10019 - [Mac] [Render] Right-click context menu immediately disappears when clicking any place in the ‘Inventory’ floater

meow-7.2.2
ruslantproductengine 2018-11-08 18:33:42 +02:00
parent fc2cdf62f1
commit 755b4a3a6d
1 changed files with 2 additions and 1 deletions

View File

@ -3260,7 +3260,8 @@ void LLMenuGL::showPopup(LLView* spawning_view, LLMenuGL* menu, S32 x, S32 y)
menu->arrangeAndClear();
LLUI::getMousePositionLocal(menu->getParent(), &mouse_x, &mouse_y);
LLMenuHolderGL::sContextMenuSpawnPos.set(mouse_x,mouse_y);
F32 dev_scale_factor = LLView::getWindow()->getDeviceScaleFactor();
LLMenuHolderGL::sContextMenuSpawnPos.set(mouse_x/dev_scale_factor, mouse_y/dev_scale_factor);
const LLRect menu_region_rect = LLMenuGL::sMenuContainer->getRect();