virtual protected void LayoutModalWaitPane() { if (_contentArea != null) { Vector2 pt = _frame.LocalToGlobal(Vector2.zero); pt = this.GlobalToLocal(pt); _modalWaitPane.SetXY((int)pt.x + _contentArea.x, (int)pt.y + _contentArea.y); _modalWaitPane.SetSize(_contentArea.width, _contentArea.height); } else { _modalWaitPane.SetSize(this.width, this.height); } }