diff --git a/resources/ext.popups.core.js b/resources/ext.popups.core.js
index a08f7ac46..5f4d098b9 100644
--- a/resources/ext.popups.core.js
+++ b/resources/ext.popups.core.js
@@ -64,9 +64,7 @@
$thumbnail = $( '' )
.attr( 'src', thumbnail.source )
.removeClass( 'mwe-popups-is-tall mwe-popups-is-not-tall' )
- .addClass( tall ? 'mwe-popups-is-tall' : 'mwe-popups-is-not-tall' )
- .attr( 'width', thumbnail.width )
- .attr( 'height', thumbnail.height );
+ .addClass( tall ? 'mwe-popups-is-tall' : 'mwe-popups-is-not-tall' );
} else {
$thumbnail = $( '' );
}
@@ -99,8 +97,7 @@
.addClass( bar.tall ? 'mwe-popups-is-tall' : 'mwe-popups-is-not-tall' )
.css({
top: offsetTop,
- left: offsetLeft,
- minHeight: bar.tall ? bar.thumbnail.height : 'initial'
+ left: offsetLeft
})
.append( bar.box )
.show()
diff --git a/resources/ext.popups.core.less b/resources/ext.popups.core.less
index 79091382d..8d0dc78b9 100644
--- a/resources/ext.popups.core.less
+++ b/resources/ext.popups.core.less
@@ -36,10 +36,12 @@
> img.mwe-popups-is-tall{
float: right;
+ height: 250px;
padding-left: 1.28em;
}
> img.mwe-popups-is-not-tall{
+ width: 300px;
float: initial;
}