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 2020/11/20 19:43:07 UTC
[royale-asjs] branch develop updated: try forcing unskinned Spark
Application's contentView to the size given by the SystemManager. SHould
fix #935
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
The following commit(s) were added to refs/heads/develop by this push:
new 4638a75 try forcing unskinned Spark Application's contentView to the size given by the SystemManager. SHould fix #935
4638a75 is described below
commit 4638a750291a662c056d4ce4a5ded294d03013b3
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Nov 20 11:42:47 2020 -0800
try forcing unskinned Spark Application's contentView to the size given by the SystemManager. SHould fix #935
---
.../src/main/royale/spark/components/Application.as | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
index 6cfdb04..0f2e813 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
@@ -74,6 +74,7 @@ COMPILE::JS {
import org.apache.royale.binding.ContainerDataBinding;
import org.apache.royale.core.AllCSSValuesImpl;
import org.apache.royale.core.IFlexInfo;
+import org.apache.royale.core.ILayoutHost;
import org.apache.royale.core.IParent;
import org.apache.royale.core.IPopUpHost;
import org.apache.royale.core.IPopUpHostParent;
@@ -2294,6 +2295,15 @@ public class Application extends SkinnableContainer implements IStrand, IParent,
return _softKeyboardRect;
}*/
+ override public function setActualSize(w:Number, h:Number):void
+ {
+ super.setActualSize(w, h);
+ if (!skin) {
+ ((view as ILayoutHost).contentView as Group).width = w;
+ ((view as ILayoutHost).contentView as Group).height = h;
+ }
+ }
+
//--------------------------------------------------------------------------
//
// IPopUpHost