Correct position of context menus in scrolling panels, fixes #135
This commit is contained in:
parent
43ed72b4c5
commit
9ecc29d24c
@ -162,7 +162,7 @@ Point Component::GetScreenPos()
|
||||
if(GetParentWindow())
|
||||
newPos += GetParentWindow()->Position;
|
||||
if(GetParent())
|
||||
newPos += GetParent()->Position;
|
||||
newPos += GetParent()->Position + GetParent()->ViewportPosition;
|
||||
newPos += Position;
|
||||
return newPos;
|
||||
}
|
||||
|
Reference in New Issue
Block a user