Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just display part of it when using on the next.js instace and there is a scaling on Windows #402

Open
flyingsnoopy opened this issue Oct 25, 2023 · 3 comments

Comments

@flyingsnoopy
Copy link

It just display part of the component when I use it on a next.js instace and the "Change the size of text, apps, and other items" on "Scale and layout" of "Display" is larger than 100%.

I use this code to test.

import AvatarEditor from 'react-avatar-editor'

function Home() {
  

  return (
    <main>
      <AvatarEditor
        image="https://cdn.pixabay.com/photo/2023/10/13/14/39/book-8312948_1280.jpg"
        width={250}
        height={250}
        border={50}
        color={[255, 255, 255, 0.6]} // RGBA
        scale={1.2}
        rotate={0}
      />
    </main>
  )
}

export default Home

(App.js.The rest part of instace follow the template)
image
(Github Codespace,use Next.js template)
image
(Github Codespace,use ordinary React template)

@mosch
Copy link
Owner

mosch commented Oct 25, 2023

Thank you for reporting this, however I'm not sure what the actual problem is. Can you rephrase?

@flyingsnoopy
Copy link
Author

Sorry,I‘ve forgotten mention to that this bug seem that only shows on Windows.As the picture show, when I use it on a nextjs (v13.5.4) instance and the client setting "Change the size of text, apps, and other items" on "Scale and layout" of "Display" on Windows Setting is larger than 100%,it only show the top and left part and its right and bottom border are cut off.More information about Windows system scaling
(The red marks the "Change the size of text, apps, and other items" on "Scale and layout" of "Display")
image

@flyingsnoopy
Copy link
Author

flyingsnoopy commented Oct 29, 2023

I'm sorry that I'm not good at English😥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants