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; break;
} }
} }
$width = '';
if (!empty($attributes['style'])) {
$width = str_replace('width:', '', $attributes['style']);
}
$result = Display::select( $result = Display::select(
"choice[$questionId][]", "choice[$questionId][]",
$resultOptions, $resultOptions,
$selected, $selected,
['class' => 'selectpicker'], [
'class' => 'selectpicker',
'data-width' => $width
],
false false
); );
break; break;

Loading…
Cancel
Save