-
Improvement
-
Resolution: Fixed
-
Major
-
3.8.2, 3.9
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
Since they were first created, the drag drop onto image question types have had a hard-coded maximum size limit on the background image (constants QTYPE_DDMARKER_BGIMAGE_MAXWIDTH/HEIGHT, QTYPE_DDIMAGEORTEXT_BGIMAGE_MAXWIDTH/HEIGHT and QTYPE_DDIMAGEORTEXT_DRAGIMAGE_MAXWIDTH/HEIGHT) used in calls to constrain_image_size_in_draft_area.
Now that we have good responsive design (thanks to MDL-58645 and MDL-68382) these hard limits are not appropriate. We will just leave it up to the teacher to judge what sizes are appropraite (although we should probably prevent tacher from uploading drag-item images that are bigger than the background image - but probably the best place to detect that is in the form valdiation.)
So, remove those constants, and the code that refers to them, and once that is done, it should be possible to create versions of the two attached questions (in .xml format) but using the full-sized backgroun image.