Skip to content

Commit bfb72cd

Browse files
committed
minor
1 parent feaa2e2 commit bfb72cd

File tree

1 file changed

+4
-4
lines changed
  • services/web/client/source/class/osparc/component/widget

1 file changed

+4
-4
lines changed

services/web/client/source/class/osparc/component/widget/Thumbnail.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ qx.Class.define("osparc.component.widget.Thumbnail", {
106106
const image = this.getChildControl("image");
107107
const source = image.getSource();
108108
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;
109+
const srcWidth = qx.io.ImageLoader.getWidth(source);
110+
const srcHeight = qx.io.ImageLoader.getHeight(source);
111+
if (srcWidth && srcHeight) {
112+
const aspectRatio = srcWidth/srcHeight;
113113
const maxWidth = image.getMaxWidth();
114114
const maxHeight = image.getMaxHeight();
115115

0 commit comments

Comments
 (0)