Skip to content

IconSize wrong sizing #66

Description

@SKProCH

When I setup IconSize="17" it differs from Width="16" Height="16":

<avalonia:MaterialIcon Kind="Home" Width="16" Height="16" />
<TextBlock>1231241</TextBlock>
<avalonia:MaterialIcon Kind="Home" IconSize="16" />
<TextBlock>1231241</TextBlock>
<avalonia:MaterialIcon Kind="Home" Width="16" Height="16" Classes="Fill" />
<TextBlock>1231241</TextBlock>
Image

The IconSize'd icon have Bounds 0,0,16,17:

Image

And the ViewBox has the Bounds: 0, 2, 16, 13.600000000000001, despite the DesiredSize/Width/Height is 16

Probably we need to take look at this, @sn4k3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions