From ae76fd1b2c67de6cb6f34b342a0cfb6930a54639 Mon Sep 17 00:00:00 2001 From: edward Date: Wed, 2 Aug 2017 14:03:03 +0800 Subject: [PATCH] Roo/bootstrap/Tooltip.js --- Roo/bootstrap/Tooltip.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Tooltip.js b/Roo/bootstrap/Tooltip.js index 90c8d63006..ad51239839 100644 --- a/Roo/bootstrap/Tooltip.js +++ b/Roo/bootstrap/Tooltip.js @@ -249,14 +249,21 @@ Roo.extend(Roo.bootstrap.Tooltip, Roo.bootstrap.Component, { Roo.log(xy); -// if(placement == 'top' || placement == 'bottom'){ - if(xy[0] < 0){ + if(xy[0] < 0){ placement = 'right'; } if(xy[0] + this.el.getWidth() > Roo.lib.Dom.getViewWidth()){ placement = 'left'; - } + +// if(placement == 'top' || placement == 'bottom'){ +// if(xy[0] < 0){ +// placement = 'right'; +// } +// +// if(xy[0] + this.el.getWidth() > Roo.lib.Dom.getViewWidth()){ +// placement = 'left'; +// } // } align = Roo.bootstrap.Tooltip.alignment[placement]; -- 2.39.2