Fixes #5492: Size of popup is now correctly computed based on data

hum. I understand you changed something in this plugin ?
However, we cannot see what did change with this huge file insertion. Could you make a commit with the copy, then another one with the change ?