1 write to _contentHeight
Aspire.Tray.Tests (1)
src\Aspire.Tray\Common\TrayPanel.cs (1)
752_contentHeight = y + ListBottomPadding;
6 references to _contentHeight
Aspire.Tray.Tests (6)
src\Aspire.Tray\Common\TrayPanel.cs (6)
376_scroll = Math.Clamp(before - deltaY, 0, Math.Max(0, _contentHeight - _viewport.Height)); 806var height = Math.Min(_maxHeight, chrome + _contentHeight); 808_scroll = Math.Clamp(_scroll, 0, Math.Max(0, _contentHeight - _viewport.Height)); 887if (_contentHeight > _viewport.Height && _viewport.Height > 0) 889var thumb = Math.Max(24, _viewport.Height * _viewport.Height / _contentHeight); 891var thumbY = _viewport.Y + 4 + travel * _scroll / (_contentHeight - _viewport.Height);