[FIX]pretty tooltip: attach tooltip to body to insure that some element don't move...
authorCedric Snauwaert <csn@openerp.com>
Fri, 18 Apr 2014 10:12:35 +0000 (12:12 +0200)
committerCedric Snauwaert <csn@openerp.com>
Fri, 18 Apr 2014 10:12:35 +0000 (12:12 +0200)
increase tooltip z-index to be visible when a modal is open

bzr revid: csn@openerp.com-20140418101235-08yqheh70wi4hb6g

addons/web/static/src/css/base.css
addons/web/static/src/js/core.js

index 023c808..4931ec1 100644 (file)
@@ -3307,6 +3307,8 @@ body.oe_single_form .oe_single_form_container {
   background: white;
   text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
   background-color: transparent;
+  /*We need a greater z-index in order for tooltip to go over bootstrap modal z-index*/
+  z-index: 1500;
 }
 .tooltip .tooltip-inner {
   text-align: left !important;
index 5339fa8..acb4c2b 100644 (file)
@@ -792,6 +792,7 @@ instance.web.unblockUI = function() {
 /* Bootstrap defaults overwrite */
 $.fn.tooltip.Constructor.DEFAULTS.placement = 'bottom';
 $.fn.tooltip.Constructor.DEFAULTS.html = true;
+$.fn.tooltip.Constructor.DEFAULTS.container = 'body';
 
 /**
  * Registry for all the client actions key: tag value: widget