Skip to content

Commit

Permalink
Fix video size in feedback player
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Feb 26, 2024
1 parent 09bc0eb commit 7b3d863
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/thyme/thyme_feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ $(document).on("turbolinks:load", function () {

// resizes the thyme container to the window dimensions
function resizeContainer() {
Resizer.resizeContainer(thymeContainer, 1, 0);
Resizer.resizeContainer(thymeContainer, 1 / 0.82, 0);
annotationManager.updateMarkers();
}

window.onresize = resizeContainer;
video.onloadedmetadata = resizeContainer;

$("#video").width("82%");
});

0 comments on commit 7b3d863

Please sign in to comment.