From ee1a5f57b25a37c078b2c17eedc2ac21f14d1c79 Mon Sep 17 00:00:00 2001 From: Gordon Bateson Date: Sat, 2 Jan 2016 16:54:59 +0900 Subject: [PATCH] MDL-79863 qtype_ordering: qtype_ordering fix display of number when showing correct order of items in a horizontal list --- question/type/ordering/styles.css | 12 ++++++++++-- question/type/ordering/version.php | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/question/type/ordering/styles.css b/question/type/ordering/styles.css index 0345d4960b2..b0e7fe9ae71 100644 --- a/question/type/ordering/styles.css +++ b/question/type/ordering/styles.css @@ -69,14 +69,22 @@ margin-top : 4px; } -.que.ordering div.rightanswer ol.correctorder { - overflow: auto; /* cover the floating LI elements */ +/* + force containing DIV to cover the floating LI elements + Note: if you add "overflow:auto; to "ol.correctorder" + then the numbers for the
  • elements disappear !! +*/ +.que.ordering div.rightanswer { + overflow: auto; } .que.ordering div.rightanswer ol.correctorder li.horizontal { float : left; margin-left : 24px; margin-right : 24px; } +.que.ordering div.rightanswer ol.correctorder li.horizontal:first-child { + margin-left : 0px; +} .que.ordering div.rightanswer ol.correctorder li.vertical { } diff --git a/question/type/ordering/version.php b/question/type/ordering/version.php index c92c18eff46..cf56b2efca2 100644 --- a/question/type/ordering/version.php +++ b/question/type/ordering/version.php @@ -31,5 +31,5 @@ $plugin->cron = 0; $plugin->component = 'qtype_ordering'; $plugin->maturity = MATURITY_STABLE; $plugin->requires = 2010112400; // Moodle 2.0 -$plugin->version = 2016010237; -$plugin->release = '2016-01-02 (37)'; +$plugin->version = 2016010238; +$plugin->release = '2016-01-02 (38)';