summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/bootstrap
diff options
context:
space:
mode:
authorbth-openerp <bth@tinyerp.com>2013-12-04 17:28:24 +0530
committerbth-openerp <bth@tinyerp.com>2013-12-04 17:28:24 +0530
commit5d874a4acb1e2e60069d879bef4d49226492b4cd (patch)
tree9d8c28bca3342c486536f9dc0f8103e22dd3ac9a /addons/web/static/lib/bootstrap
parentdfd38f311a34dd49bc55673a301ccdac9ae3c4fa (diff)
[IMP]Improved css and offset for tooltip.
bzr revid: bth@tinyerp.com-20131204115824-tbq4nys4c0d2c327
Diffstat (limited to 'addons/web/static/lib/bootstrap')
-rw-r--r--addons/web/static/lib/bootstrap/js/tooltip.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/lib/bootstrap/js/tooltip.js b/addons/web/static/lib/bootstrap/js/tooltip.js
index 46b8c9bdd85..5bc53a2d7cc 100644
--- a/addons/web/static/lib/bootstrap/js/tooltip.js
+++ b/addons/web/static/lib/bootstrap/js/tooltip.js
@@ -159,6 +159,7 @@
.css({ top: 0, left: 0, display: 'block' })
.addClass(placement)
+ $tip.openerpClass('oe_tooltip')
this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
var pos = this.getPosition()
@@ -300,7 +301,7 @@
}
Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
- return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
+ return placement == 'bottom' ? { top: pos.top + pos.height, left: (pos.left + pos.width / 2 - actualWidth / 2) + actualWidth/3} :
placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
/* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }