You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2015/07/27 22:26:45 UTC
git commit: [flex-asjs] [refs/heads/develop] - Updated ContainerTest
example to demonstrate horizontal scrolling.
Repository: flex-asjs
Updated Branches:
refs/heads/develop 65e22f756 -> 9cb72e0db
Updated ContainerTest example to demonstrate horizontal scrolling.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9cb72e0d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9cb72e0d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9cb72e0d
Branch: refs/heads/develop
Commit: 9cb72e0dbddac0dfc6f7dd9bac08764d843816e0
Parents: 65e22f7
Author: Peter Ent <pe...@apache.org>
Authored: Mon Jul 27 16:26:43 2015 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Mon Jul 27 16:26:43 2015 -0400
----------------------------------------------------------------------
examples/ContainerTest/src/MyInitialView.mxml | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9cb72e0d/examples/ContainerTest/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/ContainerTest/src/MyInitialView.mxml b/examples/ContainerTest/src/MyInitialView.mxml
index 70f7c4e..a90db33 100644
--- a/examples/ContainerTest/src/MyInitialView.mxml
+++ b/examples/ContainerTest/src/MyInitialView.mxml
@@ -79,6 +79,11 @@
var label3:Label = new Label();
label3.text = "Random: " + Math.round(Math.random()*100);
tiler.addElement(label3);
+
+ var label4:Label = new Label();
+ label4.text = " /HCon: " + Math.random();
+ label4.height = 50;
+ hcon.addElement(label4);
}
]]>
</fx:Script>
@@ -88,7 +93,12 @@
<!-- FIRST COLUMN -->
- <js:HContainer id="hcon" x="20" y="40" width="400" height="100" className="Container1">
+ <js:TextButton text="Add Child" x="20" y="20" click="addAChild()" />
+
+ <js:HContainer id="hcon" x="20" y="80" width="400" height="100" className="Container1">
+ <js:beads>
+ <js:ScrollingViewport />
+ </js:beads>
<js:Label text="Line 1" height="30" />
<js:Label text="Line 2" height="30" />
<js:Label text="Line 3 is wider" height="30" />
@@ -97,8 +107,6 @@
<js:Label text="Line 6" height="30" />
</js:HContainer>
- <js:TextButton text="Add Child" x="20" y="180" click="addAChild()" />
-
<js:VContainer id="vcon" x="20" y="220" width="200" height="275" className="Container1">
<js:beads>
<js:ScrollingViewport />