Hi,

I got a problem when i whant to see the preview of a image asset, the height of the preview tooltip seems to not feet the image. I don't know why.
I joined a screenshoot.

I don't know why, in the demo site it seems to be good with the same image uploaded.

Thanks!

CommentFileSizeAuthor
Preview of image height problem77.62 KBxadag

Comments

xadag’s picture

it seems that the problem is in the assetsWidgetTooltipResize in asset-widget-inner-tooltip.js at

var frameWidth = $context.find('.tooltip-iframe-body-element').width();
var frameHeight = $context.find('.tooltip-iframe-body-element').height();

I don't know why but the frameHeight didn't fit the content of the body element.

agalitsyn’s picture

Status: Active » Needs review

Tested using clean instance. No problems was occurred.
Could you please set console.log to frameHeight and make screenshot, or try to get why height is incorrect. May be you have some css styles, which works with width of frame html?

Thanks!

agalitsyn’s picture

Status: Needs review » Needs work
IRuslan’s picture

Status: Needs work » Needs review
IRuslan’s picture

Status: Needs review » Active
IRuslan’s picture

Status: Active » Postponed (maintainer needs more info)