fixed HitTest for yaml chrome

This commit is contained in:
Chris Forbes
2010-03-16 19:02:24 +13:00
parent bba765cb4b
commit 088b97fd96
2 changed files with 6 additions and 7 deletions

View File

@@ -1069,7 +1069,8 @@ namespace OpenRA
public bool HitTest(int2 mousePos)
{
return buttons.Any(a => a.First.Contains(mousePos.ToPoint()));
return WidgetLoader.rootWidget.EventBounds.Contains(mousePos.X, mousePos.Y)
|| buttons.Any(a => a.First.Contains(mousePos.ToPoint()));
}
void DrawRightAligned(string text, int2 pos, Color c)