H5P content could be cut in height without scrollbar when displayed
If H5P content is inserted in e.g. Moodle, the height used may not be incorrect and causing the H5P to either use too much height or too little.
When an H5P is displayed it tries to contact the embedding application to inform of how much height is required to display the full height of the H5P, and the embedding application then resizes the iframe containing the H5P. Since Edlib is between the H5P and the embedding application, the communication with the H5P is handled by Edlib. When the required height of the H5P is received it passes that on to the embedding application. Edlib does not verify that the embedding application is listening, and since the H5P has received answers to its communication, it adds styling as if the requested height is set. If the content is taller than the height of the iframe the content is cut off and no scrollbar is displayed. Edlib should verify that the embedding application can and does receive messages before answering the H5P handshake.