1 write to _contentHeight
aspire-tray (1)
src\Aspire.Tray\Common\TrayPanel.cs (1)
775_contentHeight = y + ListBottomPadding;
6 references to _contentHeight
aspire-tray (6)
src\Aspire.Tray\Common\TrayPanel.cs (6)
398_scroll = Math.Clamp(before - deltaY, 0, Math.Max(0, _contentHeight - _viewport.Height)); 829var height = Math.Min(_maxHeight, chrome + _contentHeight); 831_scroll = Math.Clamp(_scroll, 0, Math.Max(0, _contentHeight - _viewport.Height)); 910if (_contentHeight > _viewport.Height && _viewport.Height > 0) 912var thumb = Math.Max(24, _viewport.Height * _viewport.Height / _contentHeight); 914var thumbY = _viewport.Y + 4 + travel * _scroll / (_contentHeight - _viewport.Height);