This is an automated email from the ASF dual-hosted git repository.
greg-dove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new cb9d9c47c7 tweak to Style's ToolTip, needs a high z-index.
cb9d9c47c7 is described below
commit cb9d9c47c7bfb0e143bebc31cba0df1cb9fb5742
Author: greg-dove <[email protected]>
AuthorDate: Wed Jun 10 16:25:03 2026 +0200
tweak to Style's ToolTip, needs a high z-index.
---
.../src/main/royale/org/apache/royale/style/const/AppLayers.as | 9 ++++-----
.../src/main/royale/org/apache/royale/style/skins/TooltipSkin.as | 3 +++
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/const/AppLayers.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/const/AppLayers.as
index c02042f53c..5fdb8430b9 100644
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/const/AppLayers.as
+++
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/const/AppLayers.as
@@ -25,11 +25,10 @@ package org.apache.royale.style.const
{
/**
* Static only
+ * const class for zIndex 'zones'
*/
- private function AppLayers()
- {
-
- }
- public static const TOOL_TIPS:uint = 4;
+ public static const POPUP_TOOL_TIPS:uint = 1000; //@todo review
this maybe it should be much higher
+
+ private function AppLayers(){}
}
}
\ No newline at end of file
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/skins/TooltipSkin.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/skins/TooltipSkin.as
index d481c4dbf0..0ad325937a 100644
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/skins/TooltipSkin.as
+++
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/skins/TooltipSkin.as
@@ -25,6 +25,7 @@ package org.apache.royale.style.skins
import org.apache.royale.style.Tooltip;
import org.apache.royale.style.colors.ColorSwatch;
import org.apache.royale.style.colors.ThemeColorSet;
+ import org.apache.royale.style.const.AppLayers;
import org.apache.royale.style.stylebeads.anim.Transition;
import org.apache.royale.style.stylebeads.background.BackgroundColor;
import org.apache.royale.style.stylebeads.border.Border;
@@ -42,6 +43,7 @@ package org.apache.royale.style.skins
import org.apache.royale.style.stylebeads.layout.Right;
import org.apache.royale.style.stylebeads.layout.Top;
import org.apache.royale.style.stylebeads.layout.Visibility;
+ import org.apache.royale.style.stylebeads.layout.ZIndex;
import org.apache.royale.style.stylebeads.sizing.HeightStyle;
import org.apache.royale.style.stylebeads.sizing.MaxWidth;
import org.apache.royale.style.stylebeads.sizing.WidthStyle;
@@ -119,6 +121,7 @@ package org.apache.royale.style.skins
openStates.push(new
DataState('direction-left',[transformLeft]));
openStates.push(new
DataState('direction-right',[transformRight]));
openStates.push(new
DataState('direction-bottom',[transformBottom]));
+ openStates.push(new
ZIndex(AppLayers.POPUP_TOOL_TIPS));
}
var positionStyle:String = inPopup ? 'absolute' :
'relative';