Skip to content

Commit e96d075

Browse files
committed
Changed width/height calculation in annotations on left/right slotted media.
1 parent 427f21e commit e96d075

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/application/views/melons/cantaloupe/js/scalarmedia.jquery.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@
188188

189189
temp.children('p:not(:last-child),div:not(:last-child)').wrap('<div class="paragraph_wrapper"></div>');
190190

191-
var width = temp.width()-50;
191+
if(content.parents('.slot.right,.slot.left').length > 0){
192+
height = null;
193+
}
192194

193195
$(page.getMediaLinks(content)).each(function(){
194196
$(this).attr({

0 commit comments

Comments
 (0)