Interactive Book Height Too Much (due to content table)

Interactive Book Height Too Much (due to content table)

by Cristian P -
Number of replies: 3

Hi! 

When I use the interactive book, the height of the box is too much and it has a lot of white space.

It looks like this: https://imgur.com/a/Ip3p3cc

This is clearly because the content table on the left (which is not opened) is long and it drags out the entire box.

How can I fix it? It needs to resize based on content, not the content table.

Moodle 4.5.3
Latest H5P downloaded today

UPDATE:

This problem is not present on another instance of Moodle that I'm running (4.5.1) on a different server with Ubuntu 22.04. 

Everything is sized appropriately there. Any idea why this happens?

Average of ratings: -
In reply to Cristian P

Re: Interactive Book Height Too Much (due to content table)

by Cristian P -
I've double checked the CSS and it's identical on both versions of Moodle.
"Additional HTML" is empty on both instances of Moodle.
I've now tried it on 3 or 4 clean installs of Moodle 4.5.3, always yielding the same result (white space).
I've also tried it on MoodleCloud, yielding the same result (white sapce).
I've also tested it on 4.4 and it has the same problem.
Resizing changes nothing (the proportions remain exactly the same, the amount of white space is the same. Or it gets worse if I make the window too narrow).
I'm using the standard Boost theme.

The sandbox Moodle yielded the same result: https://imgur.com/a/QrZpD0K

I'm guessing it's a compatibility problem with 4.5.3??

The only instance on which it has no problems is the 4.5.1 instance on an ubuntu 22.04 server.
In reply to Cristian P

Re: Interactive Book Height Too Much (due to content table)

by Thomas Winkler -

Do you still have this error or is this error still existing?

I cannot find a solution sad.

In reply to Thomas Winkler

Re: Interactive Book Height Too Much (due to content table)

by Cristian P -

You need to manually update H5P libraries. You know those separate activity types that you download?

Solution was posted here on their forum: https://h5p.org/node/1526108

"

Your content is using InteractiveBook 1.3.5. That version has been outdated since December 2021. The current version is 1.11.3.

It's in fact the menu that in your version does not get the `display: none` styling, but that is likely a bug that has been fixed during the last 3 years.

All you have to do is to upgrade the content to the newest version. "

"I edited the activity and saved it again to update the libraries, and it suddenly displays properly!"

So after you update those, don't forget to edit at least 1 thing (change a letter or something) in the activity and save that. This should re-process it with the updated H5P libraries thing and it will display properly.