Repository: flex-asjs
Updated Branches:
  refs/heads/develop 1d73de00b -> a87ffefd3


take into account x and y and check for leaving left and top sides


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a87ffefd
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a87ffefd
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a87ffefd

Branch: refs/heads/develop
Commit: a87ffefd32a1eaed0a389022cd00b67886e1dbad
Parents: 1d73de0
Author: Justin Mclean <jmcl...@apache.org>
Authored: Tue Jul 11 16:11:48 2017 +1000
Committer: Justin Mclean <jmcl...@apache.org>
Committed: Tue Jul 11 16:11:48 2017 +1000

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a87ffefd/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
 
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
index b1f0620..5f93579 100644
--- 
a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
+++ 
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
@@ -135,7 +135,8 @@ package org.apache.flex.html.accessories
         private function rollOutHandler(event:MouseEvent):void
         {
                        var comp:IUIBase = _strand as IUIBase;
-                       var outside:Boolean = event.clientX > comp.width || 
event.clientY > comp.height;
+                       var outside:Boolean = event.clientX > (comp.x + 
comp.width) || event.clientY > (comp.y + comp.height)
+                                       || event.clientX < comp.x || 
event.clientY < comp.y;
             // check for outside otherwise tool tip itself with flash when you 
roll over it
             if (tt && outside) {
                 host.removeElement(tt);

Reply via email to