This is an automated email from the ASF dual-hosted git repository.
harbs 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 9d859e68c6 Missing order from flexbox
9d859e68c6 is described below
commit 9d859e68c6cb9ef76da2855b096ea9e01cb36747
Author: Harbs <[email protected]>
AuthorDate: Sun Feb 22 12:05:47 2026 +0200
Missing order from flexbox
---
.../royale/style/stylebeads/FlexItemStyle.as | 26 +++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/FlexItemStyle.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/FlexItemStyle.as
index b53da0e9e5..c7a1f8adf6 100644
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/FlexItemStyle.as
+++
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/FlexItemStyle.as
@@ -20,6 +20,8 @@ package org.apache.royale.style.stylebeads
{
public class FlexItemStyle extends StyleBeadBase
{
+ public static const ORDER_FIRST:Number = -9999;
+ public static const ORDER_LAST:Number = 9999;
public function FlexItemStyle()
{
super();
@@ -81,7 +83,17 @@ package org.apache.royale.style.stylebeads
_basis = value;
}
- private var _value:String;
+ private var _order:Number;
+ [Inspectable(category="General", defaultValue="NaN",
minValue="-9999", maxValue="9999")]
+ public function get order():Number
+ {
+ return _order;
+ }
+
+ public function set order(value:Number):void
+ {
+ _order = value;
+ }
private function computeShrink():String
{
@@ -113,12 +125,20 @@ package org.apache.royale.style.stylebeads
override public function get selectors():Array
{
- return [".flex-" + stringify("-")];
+ var retVal:Array = [
+ ".flex-" + stringify("-")
+ ];
+ if(!isNaN(order))
+ retVal.push(".order-" + order);
+ return retVal;
}
override public function get rules():Array
{
- return ["flex:" + stringify(" ") + ";"];
+ var retVal:Array = ["flex:" + stringify(" ") + ";"];
+ if(!isNaN(order))
+ retVal.push("order:" + order + ";");
+ return retVal;
}
}
}
\ No newline at end of file