From a2f1ed12e8b9a443b91695c54cc8037f454ec60f Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Mon, 27 Jan 2020 11:21:58 +0100 Subject: [PATCH] fix(radiosfield): better overlap prevention when labels needs several lines to show Signed-off-by: Thierry Bugier --- css/styles.css | 2 +- inc/fields/radiosfield.class.php | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/css/styles.css b/css/styles.css index 9d4219a4a..6016a28cd 100644 --- a/css/styles.css +++ b/css/styles.css @@ -345,7 +345,7 @@ form.formcreator_form { cursor: pointer; padding-left: 22px; position: relative; - display: block; + display: inline-block; height: 26px; } .formcreator_radios input[type = radio] + label:before, diff --git a/inc/fields/radiosfield.class.php b/inc/fields/radiosfield.class.php index 273c06cfc..42baf2cd3 100644 --- a/inc/fields/radiosfield.class.php +++ b/inc/fields/radiosfield.class.php @@ -92,10 +92,6 @@ public function displayField($canEdit = true) { $rand = mt_rand(); $fieldName = 'formcreator_field_' . $id; $domId = $fieldName . '_' . $rand; - // echo '' . PHP_EOL; $values = $this->getAvailableValues(); if (!empty($values)) { @@ -105,6 +101,7 @@ public function displayField($canEdit = true) { if ((trim($value) != '')) { $i++; $checked = ($this->value == $value) ? ' checked' : ''; + echo '

'; echo ''; echo $value; echo ''; - echo '
'; - echo '
'; + echo '

'; } } echo '';