You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/12/05 08:08:42 UTC

[royale-asjs] branch develop updated (67b6157 -> 3707953)

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


    from 67b6157  date compare in JS only checks to see if same instance, not the value
     new abddab6  restore box-model
     new 3707953  make panels look better

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 frameworks/projects/MXRoyale/src/main/resources/defaults.css   | 10 +++++++++-
 .../MXRoyale/src/main/royale/mx/managers/SystemManager.as      |  1 +
 .../projects/SparkRoyale/src/main/resources/defaults.css       |  7 +++++++
 .../src/main/royale/spark/components/beads/PanelView.as        |  2 +-
 4 files changed, 18 insertions(+), 2 deletions(-)


[royale-asjs] 01/02: restore box-model

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit abddab68ea01ada0493b39e828173eec16cb355b
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Dec 5 00:08:05 2019 -0800

    restore box-model
---
 .../projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
index d5ff2a1..36ad29b 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
@@ -2950,6 +2950,7 @@ public class SystemManager extends SystemManagerBase implements ISystemManager,
     {
         var body:HTMLElement = document.getElementsByTagName('body')[0];
         body.appendChild(element);
+        element.className = "Application";  // to pick up box-model
         
         SystemManagerGlobals.info = info();
         


[royale-asjs] 02/02: make panels look better

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 37079538f2d8cfd97eb6f7954e509a1d05bc544a
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Dec 5 00:08:23 2019 -0800

    make panels look better
---
 frameworks/projects/MXRoyale/src/main/resources/defaults.css   | 10 +++++++++-
 .../projects/SparkRoyale/src/main/resources/defaults.css       |  7 +++++++
 .../src/main/royale/spark/components/beads/PanelView.as        |  2 +-
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/resources/defaults.css b/frameworks/projects/MXRoyale/src/main/resources/defaults.css
index 909428f..a1dea0c 100644
--- a/frameworks/projects/MXRoyale/src/main/resources/defaults.css
+++ b/frameworks/projects/MXRoyale/src/main/resources/defaults.css
@@ -333,6 +333,13 @@ Panel .TitleBar
 	background-color: #FFFFFF;
 }
 
+.TitleBarTitle
+{
+	position: absolute;
+	left: 6px;
+	top: 6px;
+}
+
 PanelTitleBar
 {
 	IBeadModel: ClassReference("org.apache.royale.html.beads.models.TitleBarModel");
@@ -340,11 +347,12 @@ PanelTitleBar
 	IBeadLayout: ClassReference("org.apache.royale.html.beads.layouts.FlexibleFirstChildHorizontalLayout");
 	iMeasurementBead: ClassReference("org.apache.royale.html.beads.TitleBarMeasurementBead");
 	background-color: #E2E2E2;
-	padding: 2px;
 	height: 30px;
 	flex-grow: 0;
 	min-height: 30px;
     font-weight: bold;
+	padding-left: 1px;
+	padding-right: 1px;
 	border-bottom: 1px solid #333333;
 }
 
diff --git a/frameworks/projects/SparkRoyale/src/main/resources/defaults.css b/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
index 98e2622..97aa1c8 100644
--- a/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
+++ b/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
@@ -202,6 +202,13 @@ TitleWindow
 	IBeadView: ClassReference("spark.components.beads.TitleWindowView");
 }
 
+.TitleBarCloseButton
+{
+	position: absolute;
+	right: 17px;
+	top: 8px;
+}
+
 /* -------------------------------------------------------
 * SWF specific styles
 * -------------------------------------------------------
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/PanelView.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/PanelView.as
index 16bc209..56ab2fa 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/PanelView.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/PanelView.as
@@ -133,7 +133,7 @@ class PanelLayout extends LayoutBase
             h = content.height + 2 + titleBar.getExplicitOrMeasuredHeight();
         titleBar.setActualSize(w - 2, titleBar.getExplicitOrMeasuredHeight());
         content.setActualSize(w - 2, h - titleBar.height - 2);
-        content.move(0, titleBar.height);
+        content.move(0, titleBar.height + 1);
         return false;
     }
 }