Fix: Tooltip must not add a scroll bar when mous is on left

This commit is contained in:
Laurent Destailleur 2010-10-23 13:01:48 +00:00
parent 0e7335e4c0
commit 31522501ab
3 changed files with 21 additions and 8 deletions

View File

@ -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')
{

View File

@ -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"); }

View File

@ -1295,7 +1295,7 @@ table.valid {
/* Tooltips */
/* ============================================================================== */
#dhtmltooltip
#dhtmltooltipx
{
position: absolute;
width: <?php print dol_size(450,'width'); ?>px;
@ -1309,6 +1309,19 @@ visibility: hidden;
z-index: 100;
}
#tooltip {
position: absolute;
width: <?php print dol_size(450,'width'); ?>px;
border-top: solid 1px #BBBBBB;
border-<?php print $left; ?>: solid 1px #BBBBBB;
border-<?php print $right; ?>: solid 1px #444444;
border-bottom: solid 1px #444444;
padding: 2px;
z-index: 3000;
background-color: #FFFFF0;
opacity: 1;
}
/* ============================================================================== */
/* Calendar */