35 references to Bottom
Aspire.Tray.Tests (35)
src\Aspire.Tray\Common\TrayPanel.cs (12)
485var bottom = items.Max(target => target.Bounds.Bottom) + ActionListPadding; 487if (bottom > _viewport.Bottom) 489_scroll += Math.Min(bottom - _viewport.Bottom, Math.Max(0, top - _viewport.Y)); 524var bottom = buttons.Max(target => target.Bounds.Bottom) + 14; 526if (bottom > _viewport.Bottom) 528_scroll += bottom - _viewport.Bottom; 609else if (target.Bounds.Bottom > _viewport.Bottom) 611_scroll += target.Bounds.Bottom - _viewport.Bottom; 851var sink = top + item.Height <= _viewport.Y || top >= _viewport.Bottom ? hidden : commands; 1234var controlsY = card.Bottom - 10 - ButtonSize;
src\Aspire.Tray\Common\TrayPanelGeometry.cs (13)
18public bool Contains(double x, double y) => x >= X && x < Right && y >= Y && y < Bottom; 20public bool Contains(PanelRect other) => other.X >= X && other.Y >= Y && other.Right <= Right && other.Bottom <= Bottom; 22public bool IntersectsWith(PanelRect other) => other.X < Right && X < other.Right && other.Y < Bottom && Y < other.Bottom; 33var bottom = Math.Min(Bottom, other.Bottom); 134=> new PanelPath().MoveTo(rect.X, rect.Y).LineTo(rect.Right, rect.Y).LineTo(rect.Right, rect.Bottom) 135.LineTo(rect.X, rect.Bottom).Close(); 153path.LineTo(rect.Right, rect.Bottom - bottomRight); 156path.Arc(rect.Right - bottomRight, rect.Bottom - bottomRight, bottomRight, 0, 90, connect: true); 158path.LineTo(rect.X + bottomLeft, rect.Bottom); 161path.Arc(rect.X + bottomLeft, rect.Bottom - bottomLeft, bottomLeft, 90, 90, connect: true);
TrayPanelTests.cs (10)
194var items = panel.Scene.Targets.Where(target => target.Host == host && target.Bounds.Y > row.Bounds.Bottom).ToList(); 203Assert.All(items, item => Assert.True(item.Bounds.Bottom <= next.Bounds.Y, $"{item.Key} overlaps the next row")); 206panel.Scene.Commands.OfType<TextCommand>().Where(text => text.Bounds.Y >= items[0].Bounds.Y && text.Bounds.Bottom <= items[^1].Bounds.Bottom) 332Assert.All(applications, target => Assert.True(target.Bounds.Y >= openIn.Bounds.Bottom)); 480Assert.InRange(last.Bounds.Bottom, panel.Viewport.Y, panel.Viewport.Bottom); 870=> Math.Abs(a.X - b.X) < 1e-9 && Math.Abs(a.Y - b.Y) < 1e-9 && Math.Abs(a.Right - b.Right) < 1e-9 && Math.Abs(a.Bottom - b.Bottom) < 1e-9; 880var header = scene.Commands.OfType<TextCommand>().Where(text => text.Bounds.Bottom <= TrayPanel.HeaderHeight).ToList();