aboutsummaryrefslogtreecommitdiffstats
path: root/resources/media_controls.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/media_controls.js')
-rw-r--r--resources/media_controls.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/media_controls.js b/resources/media_controls.js
index 7a197f1f6d8..ebcc3e2029b 100644
--- a/resources/media_controls.js
+++ b/resources/media_controls.js
@@ -212,8 +212,9 @@
}
render(from = this.state) {
- // XXX This should use clientHeight.
+ // XXX This should use clientHeight/clientWidth
this.root.style.height = this.media.videoHeight;
+ this.root.style.width = this.media.videoWidth;
// Error
if (this.state == ERRORED) {