We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15efa78 commit b0617a5Copy full SHA for b0617a5
app/code/Magento/Ui/view/base/web/js/grid/columns/image-preview.js
@@ -169,7 +169,7 @@ define([
169
* Update image data when image preview is opened
170
*/
171
updateImageData: function () {
172
- var img = $(this.previewImageSelector + ' img');
+ var img = $(this.previewImageSelector + ' img'), self;
173
174
if (!img.get(0)) {
175
setTimeout(function () {
@@ -179,7 +179,8 @@ define([
179
this.updateHeight();
180
this.scrollToPreview();
181
} else {
182
- var self = this;
+ self = this;
183
+
184
img.on('load', function () {
185
self.updateHeight();
186
self.scrollToPreview();
0 commit comments