We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfb72cd commit d75d467Copy full SHA for d75d467
services/web/client/source/class/osparc/component/widget/Thumbnail.js
@@ -110,6 +110,12 @@ qx.Class.define("osparc.component.widget.Thumbnail", {
110
const srcHeight = qx.io.ImageLoader.getHeight(source);
111
if (srcWidth && srcHeight) {
112
const aspectRatio = srcWidth/srcHeight;
113
+ if (this.getBounds() && this.getBounds().width < image.getMaxWidth()) {
114
+ image.setMaxWidth(this.getBounds().width);
115
+ }
116
+ if (this.getBounds() && this.getBounds().height < image.getMaxHeight()) {
117
+ image.setMaxHeight(this.getBounds().height);
118
119
const maxWidth = image.getMaxWidth();
120
const maxHeight = image.getMaxHeight();
121
0 commit comments