Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Jul 30, 2024
1 parent 62e903b commit c1c706f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 64 deletions.
55 changes: 5 additions & 50 deletions assets/js/brightcove-admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions assets/js/src/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,6 @@
}
}, [width, sizing, aspectRatio, height, experienceId]);

element.useEffect(() => {
if (
sizing === 'fixed' &&
(width === '100%' || height === '100%') &&
!inPageExperienceId
) {
props.setAttributes({
...props.attributes,
width: width === '100%' ? maxWidth : undefined,
height: height === '100%' ? maxHeight : undefined,
});
}
}, [width, sizing, height, maxWidth, maxHeight, inPageExperienceId]);

element.useEffect(() => {
if (embed === 'in-page-horizontal' || embed === 'in-page-vertical') {
props.setAttributes({ ...props.attributes, sizing: 'fixed' });
Expand Down

0 comments on commit c1c706f

Please sign in to comment.