You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/02/08 14:48:17 UTC

[royale-asjs] branch develop updated: add OS lable to TDJ

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

carlosrovira 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 5924198  add OS lable to TDJ
5924198 is described below

commit 59241986e7a277193382ca1cab403f60d67995c4
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Feb 8 15:48:10 2019 +0100

    add OS lable to TDJ
---
 examples/royale/TourDeJewel/src/main/royale/WelcomeSection.mxml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/examples/royale/TourDeJewel/src/main/royale/WelcomeSection.mxml b/examples/royale/TourDeJewel/src/main/royale/WelcomeSection.mxml
index 2c31598..4008e99 100644
--- a/examples/royale/TourDeJewel/src/main/royale/WelcomeSection.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/WelcomeSection.mxml
@@ -23,6 +23,12 @@ limitations under the License.
     xmlns:js="library://ns.apache.org/royale/basic" 
     xmlns:c="components.*" sourceCodeUrl="WelcomeSection.mxml">
     
+    <fx:Script>
+        <![CDATA[
+            import org.apache.royale.utils.OSUtils;
+        ]]>
+    </fx:Script>
+
     <j:beads>
         <js:ContainerDataBinding/>
     </j:beads>
@@ -47,7 +53,7 @@ limitations under the License.
             </j:beads>
         </j:Label>
 
-        <j:Label width="400" multiline="true" text="Browser support: Chrome (v.44+), Firefox (v.34+), IE 11 &amp; Edge 15+, Safari (v.11.1+), Opera. Mobile: iOS (v.11.0), Android (v.5.0) &amp; Windows Mobile">
+        <j:Label width="400" multiline="true" html="Browser support: Chrome (v.44+), Firefox (v.34+), IE 11 &amp; Edge 15+, Safari (v.11.1+), Opera. Mobile: iOS (v.11.0), Android (v.5.0) &amp; Windows Mobile.&lt;br>&lt;strong>This OS: {OSUtils.getOS()}&lt;/strong>">
             <j:beads>
                 <j:SizeControl size="small"/>
                 <j:TextAlign align="center"/>