57 references to Bottom
Aspire.Tray.Tests (57)
Helpers\TrayPanelSvgRenderer.cs (1)
132
layer.Add(Line(guide.Position, b.Y, guide.Position, b.
Bottom
, "#00E5FF"));
LinuxPlasmaAnchorTests.cs (1)
90
var panel = LinuxTrayPanel.Place(monitors[1].Geometry, anchor.CenterX, anchor.
Bottom
, 200, 1.5);
LinuxTrayTests.cs (3)
144
var bounds = LinuxTrayPanel.Place(workarea, -20, workarea.
Bottom
, 300, scale);
149
Assert.Equal(workarea.
Bottom
- 4 * scale, bounds.
Bottom
, precision: 10);
src\Aspire.Tray\Common\TrayPanel.cs (14)
386
if (y >= thumb.Y && y <= thumb.
Bottom
)
590
var bottom = items.Max(target => target.Bounds.
Bottom
) + ActionListPadding;
592
if (bottom > _viewport.
Bottom
)
594
_scroll += Math.Min(bottom - _viewport.
Bottom
, Math.Max(0, top - _viewport.Y));
629
var bottom = buttons.Max(target => target.Bounds.
Bottom
) + 14;
631
if (bottom > _viewport.
Bottom
)
633
_scroll += bottom - _viewport.
Bottom
;
714
else if (target.Bounds.
Bottom
> _viewport.
Bottom
)
716
_scroll += target.Bounds.
Bottom
- _viewport.
Bottom
;
980
var sink = top + item.Height <= _viewport.Y || top >= _viewport.
Bottom
? hidden : commands;
1092
if (top + item.Height <= _viewport.Y || top >= _viewport.
Bottom
)
1495
var controlsY = card.
Bottom
- 10 - ButtonSize;
src\Aspire.Tray\Common\TrayPanelGeometry.cs (13)
18
public bool Contains(double x, double y) => x >= X && x < Right && y >= Y && y <
Bottom
;
20
public bool Contains(PanelRect other) => other.X >= X && other.Y >= Y && other.Right <= Right && other.
Bottom
<=
Bottom
;
22
public bool IntersectsWith(PanelRect other) => other.X < Right && X < other.Right && other.Y <
Bottom
&& Y < other.
Bottom
;
33
var 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();
153
path.LineTo(rect.Right, rect.
Bottom
- bottomRight);
156
path.Arc(rect.Right - bottomRight, rect.
Bottom
- bottomRight, bottomRight, 0, 90, connect: true);
158
path.LineTo(rect.X + bottomLeft, rect.
Bottom
);
161
path.Arc(rect.X + bottomLeft, rect.
Bottom
- bottomLeft, bottomLeft, 90, 90, connect: true);
src\Aspire.Tray\Common\WindowsTrayPanelPlacement.cs (4)
11
var below = Math.Max(0, workarea.
Bottom
- anchor.
Bottom
- 2 * margin);
20
var bottom = Math.Max(top, workarea.
Bottom
- height - margin);
28
var below = anchor.
Bottom
+ margin;
src\Aspire.Tray\Linux\LinuxTrayPanel.cs (4)
117
_anchorY = (int)Math.Round(anchor.
Bottom
);
473
var y = anchorY >= workarea.
Bottom
? workarea.
Bottom
- height - margin : Math.Max(workarea.Y + margin, anchorY + margin);
474
y = Math.Clamp(y, workarea.Y + margin, Math.Max(workarea.Y + margin, workarea.
Bottom
- height - margin));
TrayPanelTests.cs (15)
234
var items = panel.Scene.Targets.Where(target => target.Host == host && target.Bounds.Y > row.Bounds.
Bottom
).ToList();
243
Assert.All(items, item => Assert.True(item.Bounds.
Bottom
<= next.Bounds.Y, $"{item.Key} overlaps the next row"));
246
panel.Scene.Commands.OfType<TextCommand>().Where(text => text.Bounds.Y >= items[0].Bounds.Y && text.Bounds.
Bottom
<= items[^1].Bounds.
Bottom
)
372
Assert.All(applications, target => Assert.True(target.Bounds.Y >= openIn.Bounds.
Bottom
));
520
Assert.InRange(last.Bounds.
Bottom
, panel.Viewport.Y, panel.Viewport.
Bottom
);
530
var y = panel.Viewport.
Bottom
- 10;
544
var y = panel.Viewport.
Bottom
- 5;
560
var trackBottom = panel.Viewport.
Bottom
- 5;
1079
=> 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;
1089
var header = scene.Commands.OfType<TextCommand>().Where(text => text.Bounds.
Bottom
<= TrayPanel.HeaderHeight).ToList();
1144
Assert.True(notice.Bounds.
Bottom
<= footerTop);
1147
Assert.True(noticeText.Bounds.
Bottom
<= footerTop);
WindowsTrayPanelPlacementTests.cs (2)
17
Assert.Equal(icon.Y - 12, panel.
Bottom
);
29
Assert.Equal(icon.
Bottom
+ 12, panel.Y);