Skip to content

LG-4392: Set Acuant canvas width as HTML attribute#4936

Merged
aduth merged 1 commit intomainfrom
aduth-acuant-width-conflict
Apr 21, 2021
Merged

LG-4392: Set Acuant canvas width as HTML attribute#4936
aduth merged 1 commit intomainfrom
aduth-acuant-width-conflict

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Apr 20, 2021

Follow-up to: #4929

Why: As of Acuant SDK v11.4.4, the SDK now sets width and height attributes based on a desirable aspect ratio (see setDimens function, Acuant SDK v11.4.4 L828). Inline styles conflict with these attributes because they are of higher specificity, which can cause unexpected behavior.

Relevant documentation: https://github.com/Acuant/JavascriptWebSDKV11/tree/master/SimpleHTMLApp#start-live-capture

**Why**: Because as of Acuant SDK v11.4.4, the SDK now sets width and height attributes based on a desirable aspect ratio (see "setDimens' function, Acuant SDK v11.4.4 L828). Inline styles conflict with these attributes because they are of higher specificity, which can cause unexpected behavior.
@aduth
Copy link
Contributor Author

aduth commented Apr 20, 2021

Holding off on merge 'til deciding if we're moving forward with the upgrade for now.

See: #4943

@aduth
Copy link
Contributor Author

aduth commented Apr 21, 2021

On second thought, I'll merge this and include the merge commit in the revert pull request.

@aduth aduth merged commit 14048b4 into main Apr 21, 2021
@aduth aduth deleted the aduth-acuant-width-conflict branch April 21, 2021 12:57
aduth added a commit that referenced this pull request Apr 21, 2021
amathews-fs pushed a commit that referenced this pull request Apr 21, 2021
Revert "LG-4392: Set Acuant canvas width as HTML attribute (#4936)"

This reverts commit 14048b4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants