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

onchange gives incorrect pixel values #3

Open
brmscheiner opened this issue Apr 17, 2020 · 0 comments
Open

onchange gives incorrect pixel values #3

brmscheiner opened this issue Apr 17, 2020 · 0 comments

Comments

@brmscheiner
Copy link
Collaborator

Reproduction steps:

  1. Set up the DOM as follows:
<div style={{ width: 400 }}>
    <div
            id="bbox-annotator-container"
            style={{ width: '100%', zIndex: 999999 }}
      />
</div>
  1. Create an annotation with the following config
bba.add_entry({
      label: '1',
      percent: {
        left: 10,
        top: 10,
        width: 80,
        height: 80,
      },
      angles: {
        theta: 0,
      },
      highlighted: true,
    });
  1. Add onchange: console.log
  2. Pixel values are incorrect as you translate the annotation; they will become correct after you resize the height
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

1 participant