Fix width menu in fill in blank question see #2278

pull/2458/head
jmontoyaa 8 years ago
parent cc3b605b04
commit e1a02f3707
  1. 9
      main/exercise/fill_blanks.class.php

@ -544,12 +544,19 @@ class FillBlanks extends Question
break;
}
}
$width = '';
if (!empty($attributes['style'])) {
$width = str_replace('width:', '', $attributes['style']);
}
$result = Display::select(
"choice[$questionId][]",
$resultOptions,
$selected,
['class' => 'selectpicker'],
[
'class' => 'selectpicker',
'data-width' => $width
],
false
);
break;

Loading…
Cancel
Save