Repository: flex-asjs Updated Branches: refs/heads/develop e93c11d7c -> 1d73de00b
FLEX-35337 place tool tip anchor point in the centre rather than the bottom right Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/38918204 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/38918204 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/38918204 Branch: refs/heads/develop Commit: 3891820488387121767c92e1cf9c132f6e858496 Parents: 54d00a0 Author: Justin Mclean <jmcl...@apache.org> Authored: Tue Jul 11 14:43:29 2017 +1000 Committer: Justin Mclean <jmcl...@apache.org> Committed: Tue Jul 11 14:43:29 2017 +1000 ---------------------------------------------------------------------- .../src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/38918204/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 64d04bf..03ce21e 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 @@ -122,7 +122,7 @@ package org.apache.flex.html.accessories protected function determinePosition(event:MouseEvent, base:Object):Point { var comp:IUIBase = _strand as IUIBase; - var pt:Point = new Point(comp.width, comp.height); + var pt:Point = new Point(comp.width/2, comp.height/2); pt = PointUtils.localToGlobal(pt, comp); return pt; }