You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pi...@apache.org on 2017/06/29 19:22:45 UTC

[09/23] git commit: [flex-asjs] [refs/heads/develop] - FLEX-35328 - Adjust MDLExample layout in DropDownList tab

FLEX-35328 - Adjust MDLExample layout in DropDownList tab


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2fc506e6
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2fc506e6
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2fc506e6

Branch: refs/heads/develop
Commit: 2fc506e626afc39b1cef546714d151a4f3463633
Parents: 4b6de16
Author: piotrz <pi...@apache.org>
Authored: Sat Jun 24 16:42:29 2017 +0200
Committer: piotrz <pi...@apache.org>
Committed: Sat Jun 24 16:42:29 2017 +0200

----------------------------------------------------------------------
 .../MDLExample/src/main/flex/DropDownList.mxml  | 32 ++++++++++++--------
 1 file changed, 20 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2fc506e6/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml b/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
index 72aa9e9..a50413a 100644
--- a/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
@@ -28,18 +28,26 @@ limitations under the License.
     <mdl:model>
         <models:MenuModel id="menuModel"/>
     </mdl:model>
-    <mdl:Grid width="100">
-      <mdl:DropDownList id="dropDownList" labelField="label" width="150" change="onDplChange(event)">
-          <mdl:beads>
-              <js:ConstantBinding
-                      sourceID="menuModel"
-                      sourcePropertyName="menuItems"
-                      destinationPropertyName="dataProvider" />
-          </mdl:beads>
-      </mdl:DropDownList>
-        <js:Label text="Selected index: {dropDownList.selectedIndex}"/>
-        <js:Label id="selectedItemChange"
-                  text="Selected item on 'change' event: "/>
+    <mdl:Grid>
+        <mdl:GridCell columnDesktop="12">
+          <mdl:DropDownList id="dropDownList" labelField="label" width="150"
+                            selectedIndex="0"
+                            change="onDplChange(event)">
+              <mdl:beads>
+                  <js:ConstantBinding
+                          sourceID="menuModel"
+                          sourcePropertyName="menuItems"
+                          destinationPropertyName="dataProvider" />
+              </mdl:beads>
+          </mdl:DropDownList>
+        </mdl:GridCell>
+        <mdl:GridCell columnDesktop="12">
+            <js:Label text="Selected index: {dropDownList.selectedIndex}"/>
+        </mdl:GridCell>
+        <mdl:GridCell columnDesktop="12">
+            <js:Label id="selectedItemChange"
+                      text="Selected item on 'change' event: "/>
+        </mdl:GridCell>
     </mdl:Grid>
     <fx:Script><![CDATA[        
         public function onDplChange(event:Event):void