Set default width and height for the image element
This commit is contained in:
parent
73cf11b043
commit
ae2081cf4c
1 changed files with 2 additions and 0 deletions
|
@ -37,10 +37,12 @@ class customcert_element_image extends customcert_element_base {
|
||||||
|
|
||||||
$mform->addElement('text', 'width', get_string('width', 'customcertelement_image'), array('size' => 10));
|
$mform->addElement('text', 'width', get_string('width', 'customcertelement_image'), array('size' => 10));
|
||||||
$mform->setType('width', PARAM_INT);
|
$mform->setType('width', PARAM_INT);
|
||||||
|
$mform->setDefault('width', 0);
|
||||||
$mform->addHelpButton('width', 'width', 'customcertelement_image');
|
$mform->addHelpButton('width', 'width', 'customcertelement_image');
|
||||||
|
|
||||||
$mform->addElement('text', 'height', get_string('height', 'customcertelement_image'), array('size' => 10));
|
$mform->addElement('text', 'height', get_string('height', 'customcertelement_image'), array('size' => 10));
|
||||||
$mform->setType('height', PARAM_INT);
|
$mform->setType('height', PARAM_INT);
|
||||||
|
$mform->setDefault('height', 0);
|
||||||
$mform->addHelpButton('height', 'height', 'customcertelement_image');
|
$mform->addHelpButton('height', 'height', 'customcertelement_image');
|
||||||
|
|
||||||
parent::render_form_element_position($mform);
|
parent::render_form_element_position($mform);
|
||||||
|
|
Loading…
Reference in a new issue