EXT-1709 Nearby Chat: Avatar context menu can be triggered on avatar's icon only
--HG-- branch : product-enginemeow-7.2.2
parent
c377a4b6f4
commit
42e29558db
|
|
@ -122,6 +122,14 @@ public:
|
|||
LLUICtrl* child = findChild<LLUICtrl>(name);
|
||||
if(!child)
|
||||
return false;
|
||||
|
||||
LLView* parent = child->getParent();
|
||||
if(parent!=this)
|
||||
{
|
||||
x-=parent->getRect().mLeft;
|
||||
y-=parent->getRect().mBottom;
|
||||
}
|
||||
|
||||
S32 local_x = x - child->getRect().mLeft ;
|
||||
S32 local_y = y - child->getRect().mBottom ;
|
||||
return child->pointInView(local_x, local_y);
|
||||
|
|
|
|||
Loading…
Reference in New Issue