Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerBI report size fix #258

Merged
merged 2 commits into from
Feb 19, 2025
Merged

PowerBI report size fix #258

merged 2 commits into from
Feb 19, 2025

Conversation

ihorKrutenko
Copy link
Collaborator

image

const iw = width <= 0 ? '100%' : width + 'px';
const ih = height <= 0 ? iw * (19 / 32) : height;
const ih = (height <= 0 || width <= 0? containerWidth * (19 / 32) : height) + 'px';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move 19/32 to variable defaultAspectRatio

iframes[i].height = ih ;

new ResizeObserver((function() {
setTimeout(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in such case it's better to use some simply debounce here

@jane-taleika jane-taleika merged commit afb0cdf into 1.1.x Feb 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants