This is an automated email from the ASF dual-hosted git repository.
gregdove 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 3a3fa6b Tidy up in Panel. Fixes #1169
3a3fa6b is described below
commit 3a3fa6b474ae99c91406f5bfcc946579ddd4e17e
Author: greg-dove <[email protected]>
AuthorDate: Wed Dec 15 15:57:43 2021 +1300
Tidy up in Panel. Fixes #1169
---
.../projects/MXRoyale/src/main/royale/mx/containers/Panel.as | 11 +++++++++++
.../MXRoyale/src/main/royale/mx/containers/PanelTitleBar.as | 4 ++++
2 files changed, 15 insertions(+)
diff --git
a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
index 9743163..1511b47 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
@@ -669,6 +669,17 @@ public class Panel extends Container
*/
protected var titleBar:UIComponent;
+ /**
+ * PanelView coercion ignore because it is already typed-checked prior,
below
+ * @royaleignorecoercion mx.containers.beads.PanelView
+ */
+ override public function addedToParent():void
+ {
+ //support for subclass access, as per original Flex code
+ titleBar = view is PanelView ? PanelView(view).titleBar as UIComponent
: null;
+ super.addedToParent();
+ }
+
//----------------------------------
// title
//----------------------------------
diff --git
a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/PanelTitleBar.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/PanelTitleBar.as
index 1fd703b..f3e635f 100644
---
a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/PanelTitleBar.as
+++
b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/PanelTitleBar.as
@@ -46,6 +46,10 @@ public class PanelTitleBar extends UIComponent
{
super();
typeNames += " PanelTitleBar";
+ COMPILE::JS{
+ //@todo review this... (see css changes in same commit)
trying to achieve similar effect to native browser (css) layout that is used in
Alert TitleBar
+ this.positioner.style.display = '';
+ }
}
}