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

Scanner window on initial display incorrect size #71

Open
dbrody2004 opened this issue Aug 8, 2024 · 3 comments
Open

Scanner window on initial display incorrect size #71

dbrody2004 opened this issue Aug 8, 2024 · 3 comments
Labels

Comments

@dbrody2004
Copy link

I have the scanner component inside the dialog box. The dialog box has the wrong dimensions when there is no camera image in it and cuts off the scanner component. When there is an image everything works fine. This is the case with any React component such as Box, Card, etc
Screenshot 2024-08-07 at 5 10 10 PM
Screenshot 2024-08-07 at 5 09 59 PM

@ahansson89
Copy link

Were you able to solve this?

@ahansson89
Copy link

ahansson89 commented Aug 13, 2024

I fixed it with these styles:

            container: {
              width: "100%",
              height: "0", // hack to make the video not shift the layout
              paddingBottom: "100%", // hack to make the video not shift the layout
            },
            video: { width: "100%", height: "auto" }, // hack to make the video not shift the layout
          }}

Copy link

stale bot commented Sep 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants