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));
806
var height = Math.Min(_maxHeight, chrome +
_contentHeight
);
808
_scroll = Math.Clamp(_scroll, 0, Math.Max(0,
_contentHeight
- _viewport.Height));
887
if (
_contentHeight
> _viewport.Height && _viewport.Height > 0)
889
var thumb = Math.Max(24, _viewport.Height * _viewport.Height /
_contentHeight
);
891
var thumbY = _viewport.Y + 4 + travel * _scroll / (
_contentHeight
- _viewport.Height);