-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Canvas] Repeat image bug with image height fixed. #121497
[Canvas] Repeat image bug with image height fixed. #121497
Conversation
Pinging @elastic/kibana-presentation (Team:Presentation) |
@elasticmachine merge upstream |
@crob611 or anybody from @elastic/kibana-presentation, could you, please, review current PR) Thanks for your efforts) |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Please cleanup unneeded comment and this is good to go
@@ -49,7 +49,8 @@ function createImageJSX(img: HTMLImageElement | null) { | |||
if (!img) { | |||
return null; | |||
} | |||
const params = img.width > img.height ? { heigth: img.height } : { width: img.width }; | |||
// console.log(img.height, img.width); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this commented out console.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, sorry for that. 👍
…bana into repeat-image-expression-fix
💛 Build succeeded, but was flaky
Test Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @Kunzetsov |
💔 Backport failed
To backport manually run: |
* Fixed typo and increased performance. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # src/plugins/expression_repeat_image/public/components/repeat_image_component.tsx
* Fixed typo and increased performance. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # src/plugins/expression_repeat_image/public/components/repeat_image_component.tsx
Summary
Closes #121496.
Fixes bug, introduced at this PR.
And increased the performance of images rendering.