diff --git a/soft_length_limit.css b/soft_length_limit.css index 0e52177194d7b931daabda97e4994c642dc59876..3b0d0a9b469f668c2a557bb6e54c075318ea18e1 100644 --- a/soft_length_limit.css +++ b/soft_length_limit.css @@ -1,8 +1,7 @@ .soft-length-limit-tooltip { + display: inline-block; font-style: italic; - display: none; position: absolute; - display: inline-block; z-index: 10; } diff --git a/soft_length_limit.module b/soft_length_limit.module index 2ffeb46efb3a4a1f3e51736ace73001db6f921c4..4c686d3e6d5a9abb651c4444d63b6315ff79ded3 100644 --- a/soft_length_limit.module +++ b/soft_length_limit.module @@ -61,7 +61,7 @@ function soft_length_limit_field_attach_form($entity_type, $entity, &$form, &$fo if (!isset($entity_types[$entity_type])) { return; } - + $fields = field_info_instances($entity_type, $form['#bundle']); $elements = array(); @@ -102,7 +102,7 @@ function soft_length_limit_field_attach_form($entity_type, $entity, &$form, &$fo */ function soft_length_limit_set_attr(&$element, $sub_elements) { $children = element_get_visible_children($element); - + $types = _soft_length_limit_types('elements'); foreach ($children as $value) { if (isset($element[$value]['#type']) && isset($types[$element[$value]['#type']])) {