Skip to content

Commit bbf0461

Browse files
committed
VA-523 Prevent warped button caused audio option fitToWrapper
1 parent 8bc6bf0 commit bbf0461

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/scripts/h5p-multi-media-choice.js

+7
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ export default class MultiMediaChoice extends H5P.Question {
2323
// Default values are extended
2424
this.params = Util.extendParams(params);
2525

26+
// Override subcontent params
27+
for (const option of this.params.options) {
28+
if (option.media?.library?.includes('H5P.Audio')) {
29+
option.media.params.fitToWrapper = false; // VA-523: prevent warped button
30+
}
31+
}
32+
2633
this.content = new MultiMediaChoiceContent(
2734
this.params,
2835
contentId,

0 commit comments

Comments
 (0)