ant-design-blazor/components/affix/Affix.razor
James Yeung 105cfa2e8d fix(module: affix): can't affix while OffsetTop is zero (#1373)
* fix(module: affix): can't affix while OffsetTop is zero

* use affixed setter for rerendering

* limit rerendering
2021-04-17 14:43:42 +08:00

12 lines
278 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<div @ref="Ref">
@if (_affixed)
{
<div aria-hidden="true" style="@_hiddenStyle"></div>
}
<div class="@ClassMapper.Class" @ref="_childRef" style="@_affixStyle">
@ChildContent
</div>
</div>