You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/07/05 02:12:28 UTC
git commit: [flex-sdk] [refs/heads/develop] - FLEX-33604 Stop
tooltips from showing before object is visible.
Updated Branches:
refs/heads/develop 588e0aba4 -> aeed464ca
FLEX-33604 Stop tooltips from showing before object is visible.
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/aeed464c
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/aeed464c
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/aeed464c
Branch: refs/heads/develop
Commit: aeed464ca4593912185226c84277fe0626a000ea
Parents: 588e0ab
Author: Justin Mclean <jm...@apache.org>
Authored: Fri Jul 5 10:11:56 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Fri Jul 5 10:11:56 2013 +1000
----------------------------------------------------------------------
.../projects/framework/src/mx/managers/ToolTipManagerImpl.as | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/aeed464c/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as b/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
index 31364f6..2d20b86 100644
--- a/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
+++ b/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
@@ -33,11 +33,13 @@ import flash.utils.Timer;
import mx.controls.ToolTip;
import mx.core.FlexGlobals;
import mx.core.FlexVersion;
+import mx.core.IFlexDisplayObject;
import mx.core.IFlexModule;
import mx.core.IInvalidating;
import mx.core.ILayoutDirectionElement;
import mx.core.IToolTip;
import mx.core.IUIComponent;
+import mx.core.IVisualElement;
import mx.core.LayoutDirection;
import mx.core.mx_internal;
import mx.effects.EffectManager;
@@ -702,6 +704,12 @@ public class ToolTipManagerImpl extends EventDispatcher
if (target is ILayoutManagerClient && !ILayoutManagerClient(target).initialized)
return false;
+
+ if (target is IVisualElement && !IVisualElement(target).visible)
+ return false;
+
+ if (target is IFlexDisplayObject && !IFlexDisplayObject(target).visible)
+ return false;
return target.hitTestPoint(target.stage.mouseX,
target.stage.mouseY, true);