private void Measure() { if (_height == 0) { var rect = (DOMRect)_toastContainer.getBoundingClientRect(); _height = rect.height; } }