ant-design-blazor/components/avatar/AvatarGroup.razor
Andrzej Bakun 3d4f7adaaf perf(module: overlay): positioning moved to js (#1848)
* fix(module:overlay): move postion calculation to js

fixes #1836

* docs: TriggerBoundaryAdjustMode explanation

* docs: select & datepicker got BoundaryAdjustmetMode

cleanup

* test: fixes

optimization & cleanup

* fix(module:overlay): recalculate overlay position when trigger resizes

* Minor clean-up

* fix(module:overlay): wait for Show to finish in Hide

* fix: prevent vertical scrollbar on overlay adding

* fix: extract waiting function

* fix: overlay not to repostion when trigger vanishes (menu issue)

* fix: scroll adjustment for position: fixed

* fix: on menu mode change, keep

* merge conflict fix

* fix: nominal calculation reset on failed adjustment

* fix: bugs

* test: exclude log method from test coverage in overlay.ts
2021-09-10 19:06:50 +08:00

26 lines
902 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<CascadingValue Value="this" IsFixed="@true">
<div class="@ClassMapper.Class">
<CascadingValue Value=@("shown") Name="position">
@ChildContent
</CascadingValue>
@if (_overflow)
{
<Popover Trigger="new[] { Trigger.Hover }"
Placement=MaxPopoverPlacement
OverlayClassName="@_popoverClassMapper.Class">
<ContentTemplate>
<CascadingValue Value=@("hidden") Name="position">
@ChildContent
</CascadingValue>
</ContentTemplate>
<Unbound>
<Avatar RefBack="@context" Style=@MaxStyle>@($"+{_shownAvatarList.Count - MaxCount}")</Avatar>
</Unbound>
</Popover>
}
</div>
</CascadingValue>