Fix: Tooltip must not add a scroll bar when mous is on left
This commit is contained in:
parent
0e7335e4c0
commit
31522501ab
@ -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')
|
||||
{
|
||||
|
||||
@ -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"); }
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user