brownhci / WebGazer

WebGazer.js: Scalable Webcam EyeTracking Using User Interactions
https://webgazer.cs.brown.edu
Other
3.54k stars 536 forks source link

change video container width and height in setVideoViewerSize #246

Closed JasonLuckow closed 3 years ago

JasonLuckow commented 3 years ago

Hey WebGazer!

I believe this to just be a small improvement to #197. I noticed that the entire container did not update in size when setVideoViewerSize is called.

This pull request ensures that the video container element's width and height are also updated in setVideoViewerSize.

I thought it might be useful to have since it solved some problems that I was having.