mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-19 04:46:42 +02:00
Implement cursor position center for egw_tooltip
This commit is contained in:
@@ -37,6 +37,7 @@ egw.extend('tooltip', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
|
|
||||||
var optionsDefault = {
|
var optionsDefault = {
|
||||||
hideonhover: true,
|
hideonhover: true,
|
||||||
|
position:'right',
|
||||||
open: function(){},
|
open: function(){},
|
||||||
close: function(){}
|
close: function(){}
|
||||||
};
|
};
|
||||||
@@ -66,7 +67,7 @@ egw.extend('tooltip', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
var cursor_rect = {
|
var cursor_rect = {
|
||||||
left: (x - 8),
|
left: (x - 8),
|
||||||
top: (y - 8),
|
top: (y - 8),
|
||||||
right: (x + 8),
|
right: (x + (options.position == "center" ? -1 * tooltip_div.width()/2 : 8)),
|
||||||
bottom: (y + 8)
|
bottom: (y + 8)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user