Plugin shorten_expanded does not work well with embedded attachments


#1

Describe the problem you’re having:

When the plugin shorten_expanded is activated, attachments are displayed inline and the article is larger than the threshold of shorten_expanded the inlined images are below the expand button which makes the plugin rather pointless in this case.

The reason for this is that shorten_expand uses the height of the entire article but only moves what is in cdmContentInner into the contentSizeWrapper.

IMHO cdmIntermediate should be moved into the contentSizeWrapper as well.

tt-rss version (including git commit id):
commit id: 02bb26a9

Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
Archlinux
php 7.2.10
postgres 10.5


#2

you’re right. i’ve tried it and it seems to work fine. luckily nothing depends on cdmIntermediate exact position in the DOM tree because it has to be reparented.


#3

Works as expected now.

Thanks!