public void SetText(string text) { _text.SetText(text); if (_text.Width < WIDTH - 30) { _actualWidth = _text.Width + 30; } else { _actualWidth = WIDTH; } _totalHeight = _text.Height + 15; _background.Resize(_actualWidth, _totalHeight); }