You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pe...@apache.org on 2018/03/20 18:29:16 UTC
[royale-asjs] branch feature/MXRoyale updated: Updated MXRoyale
ControlsExample - now very much like an MX application.
This is an automated email from the ASF dual-hosted git repository.
pent pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
new e901b83 Updated MXRoyale ControlsExample - now very much like an MX application.
e901b83 is described below
commit e901b83039f68c61c0db047dcfa072c67259f469
Author: Peter Ent <pe...@apache.org>
AuthorDate: Tue Mar 20 14:29:09 2018 -0400
Updated MXRoyale ControlsExample - now very much like an MX application.
---
.../ControlsExample/src/main/royale/ControlsExample.mxml | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/examples/mxroyale/ControlsExample/src/main/royale/ControlsExample.mxml b/examples/mxroyale/ControlsExample/src/main/royale/ControlsExample.mxml
index 15c7174..f8b931a 100644
--- a/examples/mxroyale/ControlsExample/src/main/royale/ControlsExample.mxml
+++ b/examples/mxroyale/ControlsExample/src/main/royale/ControlsExample.mxml
@@ -19,33 +19,34 @@ limitations under the License.
-->
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.apache.org/royale/mx"
- width="600" height="400" >
+ width="600" height="400"
+ layout="horizontal" >
<!-- to do: layout="absolute" minWidth="955" minHeight="600" -->
<fx:Style>
@namespace mx "library://ns.apache.org/royale/mx";
- /* set position:absolute to make the (x,y) properties work */
+ mx|Application {
+ horizontalGap: 50px;
+ }
mx|HBox {
- position: absolute;
horizontalGap: 10px;
verticalAlign: middle;
}
mx|VBox {
- position: absolute;
verticalGap: 10px;
horizontalAlign: middle;
}
</fx:Style>
- <mx:VBox x="10" y="10" width="200" height="300">
+ <mx:VBox >
<mx:Label text="Hello World"/>
<mx:Button label="Push Me" />
<mx:Button label="Green" icon="assets/smallgreenrect.jpg" />
<mx:Image source="assets/smallgreenrect.jpg" />
</mx:VBox>
- <mx:HBox x="300" y="10" width="300" height="200">
+ <mx:HBox>
<mx:Label text="Hello World"/>
<mx:Button label="Push Me" />
<mx:Button label="Green" icon="assets/smallgreenrect.jpg" />
--
To stop receiving notification emails like this one, please contact
pent@apache.org.