moodle-format_grid icon indicating copy to clipboard operation
moodle-format_grid copied to clipboard

Grid format images displayed below and behind grid boxes

Open dragos5436 opened this issue 5 months ago • 9 comments

Describe the bug After our last Moodle upgrade we noticed that in courses where the grid format is in use, the images supposed to be inside the boxes are now displayed below the boxes and/or behind the boxes just below.

To Reproduce Steps to reproduce the behaviour:

  1. Go to any course using the grid format or set the format to grid;
  2. Scroll down to see the grid boxes;
  3. Notice the misplaced images.

Expected behaviour Images should be displayed within the borders of the grid boxes.

Screenshots Here is an example of a course before and after the bug:

Before (expected behaviour): image

After (current behaviour): image

Versions (please complete the following information):

  • Moodle: 4.4.2+ (Build: 20240823)
  • Format: 2024032902
  • Browser: Tested in the latest version of Chrome, Edge and Firefox, was able to replicate the issue in each one.

Additional context Some further digging revealed that the bug has been present since commit https://github.com/gjbarnard/moodle-format_grid/commit/bc5cb698c5da4945aef280f79ba12d2b2957e15b . Using any version before this resolves the issue and the images are in the right place.

  1. Could you please investigate whether you are able to reproduce?

  2. We have over 800 courses in our Moodle using this format and we are looking to get this sorted asap. Is there any quick fix we can apply (such as custom CSS for instance) before a proper solution is released?

Thank you.

Kind regards, Dragos

dragos5436 avatar Aug 29 '24 11:08 dragos5436