From 31522501aba622182e843ec92f9c2ee720c94a50 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 23 Oct 2010 13:01:48 +0000 Subject: [PATCH] Fix: Tooltip must not add a scroll bar when mous is on left --- htdocs/core/class/html.form.class.php | 12 ++++++------ htdocs/main.inc.php | 2 +- htdocs/theme/eldy/style.css.php | 15 ++++++++++++++- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 59e849efe73..93c1f062dc9 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -186,12 +186,12 @@ class Form } /** - * \brief Show a text with a picto and a tooltip on picto - * \param text Text to show - * \param htmltooltip Content of tooltip - * \param direction 1=Icon is after text, -1=Icon is before text - * \param type Type of picto (info, help, warning, superadmin...) - * \return string HTML code of text, picto, tooltip + * Show a text with a picto and a tooltip on picto + * @param text Text to show + * @param htmltooltip Content of tooltip + * @param direction 1=Icon is after text, -1=Icon is before text + * @param type Type of picto (info, help, warning, superadmin...) + * @return string HTML code of text, picto, tooltip */ function textwithpicto($text,$htmltext,$direction=1,$type='help') { diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 906257be52f..6a782812fb4 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -947,7 +947,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a track: true, delay: 0, showURL: false, - positionLeft: true, + positionLeft: false, bodyHandler: function() { /*console.log(jQuery(this).attr("tooltipText"));*/ return jQuery(this).attr("tooltipText"); } diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index efc8d15013a..f58ceca8f10 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -1295,7 +1295,7 @@ table.valid { /* Tooltips */ /* ============================================================================== */ -#dhtmltooltip +#dhtmltooltipx { position: absolute; width: px; @@ -1309,6 +1309,19 @@ visibility: hidden; z-index: 100; } +#tooltip { +position: absolute; +width: px; +border-top: solid 1px #BBBBBB; +border-: solid 1px #BBBBBB; +border-: solid 1px #444444; +border-bottom: solid 1px #444444; +padding: 2px; +z-index: 3000; +background-color: #FFFFF0; +opacity: 1; +} + /* ============================================================================== */ /* Calendar */