Skip to content

CircleSnail pops up everywhere on the screen #228

Open

Description

@ngotrongphuc

I just used these simple code from the docs in order to check if it works properly before put it in my code. But i got this bug: the CirleSnail just keep showing and hiding everywhere in my screen, it looks so laggy, but its colors still changed
<Progress.Bar progress={0.3} width={200} />
<Progress.Pie progress={0.4} size={50} />
<Progress.Circle size={30} indeterminate={true} />
<Progress.CircleSnail color={['red', 'green', 'blue']} />
circlesnail_bug

Activity

  1. colorgold commented on Sep 21, 2021

    @colorgold

    I had the same problem so I just added a width, height, and size (diameter of the circle) to the progress bar.

    <Progress.CircleSnail 
              color={['red', 'green', 'blue']} 
              height={100}
              width={100}
              size={100} />
    

    But, I also noticed that just adding style={{ alignSelf: "center"}} works as well.

    My full code:

    <Progress.CircleSnail 
              color={["red", "green", "blue"]}
              height={100}
              width={100}
              size={100}
              style={{
                alignSelf: "center",
              }}/>
    
  2. Nestoro commented on Oct 25, 2021

    @Nestoro

    same here and only style={{alignSelf: "center"}} helps.

    maybe that should be added to the overriding default style props in CircleSnail.js:152

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions