From f162c5848f6c64fc6a84fdacf2ee0b1cba3320c0 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Wed, 24 Jul 2013 18:11:48 -0700 Subject: [PATCH] fixed issue where tooltips in some grids would make the grid shift slightly. --- UI/jQuery/TooltipBinder.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/UI/jQuery/TooltipBinder.js b/UI/jQuery/TooltipBinder.js index fc6f983e4..7e13e1e8b 100644 --- a/UI/jQuery/TooltipBinder.js +++ b/UI/jQuery/TooltipBinder.js @@ -11,6 +11,15 @@ define( element.attr('data-placement', 'right'); } + var container = element.parents('.modal-body'); + if (container.length === 0) { + container = 'body'; + } + + element.tooltip({ + container: container + }); + element.tooltip('show'); }); });