ant-design-blazor / ant-design-blazor

🌈A set of enterprise-class UI components based on Ant Design and Blazor WebAssembly.

Home Page:https://antblazor.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Button vertical alignmet problem in GridCol with Popconfirm

michaelcsikos opened this issue · comments

image

The Delete button is wrapped in a Popconfirm. The GridRow is set to Align = "middle".

The same happens with normal size buttons:
image

The Up ad Down buttons are actually 1px lower than the Input, too.

Please try to use the Unbound way to warp the button.

Perfect, thanks!

For anyone else wanting to do this, don't forget to set RefBack = "@context":

<Popconfirm Title      = "@StringsBiz.AreYouSure"
            OnConfirm  = "() => Delete.InvokeAsync(VM)"
            OkText     = "@StringsBiz.Yes"
            CancelText = "@StringsBiz.No">
    <Unbound>
        <Button Danger Icon = "@IconType.Outline.Delete" RefBack = "@context" />
    </Unbound>
</Popconfirm>