react-avatar-editor icon indicating copy to clipboard operation
react-avatar-editor copied to clipboard

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

Open AdairLi2504 opened this issue 2 years ago • 3 comments

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)

AdairLi2504 avatar Oct 25 '23 07:10 AdairLi2504

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

mosch avatar Oct 25 '23 11:10 mosch

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

AdairLi2504 avatar Oct 29 '23 11:10 AdairLi2504

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

AdairLi2504 avatar Oct 29 '23 11:10 AdairLi2504