You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/01/13 19:11:16 UTC

[07/17] git commit: [flex-asjs] [refs/heads/develop] - make list items look nicer

make list items look nicer


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

Branch: refs/heads/develop
Commit: 38a59eb38535075b2cdc784adc1a0eff1ddb635f
Parents: f8237c4
Author: Alex Harui <ah...@apache.org>
Authored: Tue Jan 13 10:05:18 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Jan 13 10:05:18 2015 -0800

----------------------------------------------------------------------
 .../FlexJSStore/src/productsView/ProductListItem.mxml | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/38a59eb3/examples/FlexJSStore/src/productsView/ProductListItem.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSStore/src/productsView/ProductListItem.mxml b/examples/FlexJSStore/src/productsView/ProductListItem.mxml
index b4fe57d..a7b77bf 100755
--- a/examples/FlexJSStore/src/productsView/ProductListItem.mxml
+++ b/examples/FlexJSStore/src/productsView/ProductListItem.mxml
@@ -21,7 +21,7 @@ limitations under the License.
                     xmlns:basic="library://ns.apache.org/flexjs/basic" 
                     xmlns:mx="library://ns.adobe.com/flex/mx" 
     className="listItem" 
-    height="{ProductListItem.HEIGHT}" implements="org.apache.flex.core.IItemRenderer">
+    height="{HEIGHT}" implements="org.apache.flex.core.IItemRenderer">
     <!--automationName="{product.name}">-->
 
     <fx:Metadata>
@@ -101,23 +101,23 @@ limitations under the License.
     </basic:beads>
         
     <basic:ImageButton id="removeButton" backgroundImage="assets/trashcan.png"
-        width="14" height="14" 
+        width="14" height="14" y="5"
         click="removeItem()">
         <basic:beads>
             <basic:ToolTipBead toolTip="Remove from cart" />
         </basic:beads>
     </basic:ImageButton>
     
-    <basic:Image id="productImage" x="14" width="12" height="12" source="{product.image}"/>
+    <basic:Image id="productImage" x="16" y="6" width="12" height="12" source="{product.image}"/>
 
-    <basic:Label id="productName" x="26" width="100" text="{product.name}"/>
+    <basic:Label id="productName" x="30" width="100" y="4" text="{product.name}"/>
 
-    <basic:Label id="productPrice" width="60"
+    <basic:Label id="productPrice" width="60" y="4"
         text="{cf.format(product.price)}" style="textAlign:right;right:0"
                                 style.showQuantity="textAlign:right;right:25"/>
         
-    <basic:TextInput id="qty" width="25" text="{product.qty}" includeIn="showQuantity"
-                  style="textAlign:right;right:0" change="qtyChange()" >
+    <basic:TextInput id="qty" width="25" y="3" text="{product.qty}" includeIn="showQuantity"
+                  style="textAlign:right;right:0;marginTop:0" change="qtyChange()" >
         <basic:beads>
             <basic:NumericOnlyTextInputBead maxChars="3" />
         </basic:beads>