mosch / react-avatar-editor

Small avatar & profile picture component. Resize and crop uploaded images using a intuitive user interface.
https://react-avatar-editor.netlify.app/
MIT License
2.35k stars 369 forks source link

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

Open flyingsnoopy opened 10 months ago

flyingsnoopy commented 10 months ago

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 commented 10 months ago

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

flyingsnoopy commented 10 months ago

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 commented 10 months ago

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