We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feaa2e2 commit bfb72cdCopy full SHA for bfb72cd
services/web/client/source/class/osparc/component/widget/Thumbnail.js
@@ -106,10 +106,10 @@ qx.Class.define("osparc.component.widget.Thumbnail", {
106
const image = this.getChildControl("image");
107
const source = image.getSource();
108
if (source) {
109
- const width = qx.io.ImageLoader.getWidth(source);
110
- const height = qx.io.ImageLoader.getHeight(source);
111
- if (width && height) {
112
- const aspectRatio = width/height;
+ const srcWidth = qx.io.ImageLoader.getWidth(source);
+ const srcHeight = qx.io.ImageLoader.getHeight(source);
+ if (srcWidth && srcHeight) {
+ const aspectRatio = srcWidth/srcHeight;
113
const maxWidth = image.getMaxWidth();
114
const maxHeight = image.getMaxHeight();
115
0 commit comments