question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change the size of the preview-element doesn't work

See original GitHub issue

Hello,

I tried to change the css-style as explained in usage but it doesn’t worked for me.

My html file looks like this below:

<zxing-scanner #scanner class="test-class" 
      [scannerEnabled]="scannerEnabled"
      [device]="selectedDevice"
      (camerasFound)="displayCameras($event)"
      (scanSuccess)="handleQrCodeResult($event)"
      [cssClass]="'small-video'"></zxing-scanner>

and I try to change the style like this:

.small-video {
  max-height: 70vh;
  width: 100vw;
  object-fit: contain;
}

Thank you and best regards, Jan

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
andrewyancommented, Apr 5, 2018

Hi David & Luis, thanks so much for your detail info. I’ll check them out and probably need to learn a lot more about Angular 😃 You people are very helpful and I really appreciate that!

2reactions
JanKe0909commented, Apr 5, 2018

Hey guys, thank you for your help and your fast response. It works for me. 👍 Best regards, Jan

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove previews from dropzone after success - Stack Overflow
My work around is to manually reset the containing div for dropzone: document. ... previewElement.remove() , works fine in Chrome but does not...
Read more >
[WP8.1[HTML]]MediaCapture Preview element size Windows Phone ...
I'm using max resolution. Tried using some CSS, but didn't work. Any work around on how i can increase the size of it...
Read more >
Types Of File Preview Errors And How To Handle Them
Have you encountered an error message while trying to preview a file in your Dropbox? Read on to learn how to handle every...
Read more >
Layout - Dropzone
data-dz-uploadprogress (Dropzone will change the style.width property from 0% to 100% whenever there's a uploadprogress event).
Read more >
Resize images in JavaScript the right way - ImageKit.io
Rich image editors that work on client-side ... crop, and do a lot with images by changing the image URL in the src...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found