Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68045

drag & drop question - make image size variable via moodle GUI

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.8.1
    • Questions
    • None
    • MOODLE_38_STABLE

      At the moment the image sizes can only be altered via changing the lines in question/type/ddimageortext/questiontype.php:

      define('QTYPE_DDIMAGEORTEXT_BGIMAGE_MAXWIDTH', 600);
      define('QTYPE_DDIMAGEORTEXT_BGIMAGE_MAXHEIGHT', 400);
      define('QTYPE_DDIMAGEORTEXT_DRAGIMAGE_MAXWIDTH', 150);
      define('QTYPE_DDIMAGEORTEXT_DRAGIMAGE_MAXHEIGHT', 100);

      to the desired sizes.

      It should be possible to alter those parameters via the moodle GUI, when creating the question.

      600x400 images are not up to date and this limitation might be too small for some intended use-cases.

      Also for some use-cases it should be possible to change the size of the dragimage.

            timhunt Tim Hunt
            500gLychee Martin Österreicher
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.