flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [07/15] git commit: [flex-asjs] [refs/heads/develop] - use spacer like old FlexStore
Date Wed, 05 Aug 2015 21:20:51 GMT
use spacer like old FlexStore


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

Branch: refs/heads/develop
Commit: 747b65399a0d506ea0893f574f46107a7c588bd3
Parents: 69f651c
Author: Alex Harui <aharui@apache.org>
Authored: Wed Aug 5 11:16:48 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Aug 5 12:28:50 2015 -0700

----------------------------------------------------------------------
 examples/FlexJSStore/src/ProductsView.mxml      | 18 +++++++-----------
 examples/FlexJSStore/src/productsView/Grip.mxml |  7 +++++--
 2 files changed, 12 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/747b6539/examples/FlexJSStore/src/ProductsView.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSStore/src/ProductsView.mxml b/examples/FlexJSStore/src/ProductsView.mxml
index c563653..70fccd1 100755
--- a/examples/FlexJSStore/src/ProductsView.mxml
+++ b/examples/FlexJSStore/src/ProductsView.mxml
@@ -75,7 +75,9 @@ limitations under the License.
         className="colorPanel"
         height="100%" width="100%" 
         >
-    
+        <js:beads>
+            <js:OneFlexibleChildHorizontalLayout flexibleChild="spacer" />
+        </js:beads>
         <productsView:Grip id="filterGrip" gripIcon="assets/icon_magnifier.png" 
             gripTip="Show filter panel" click="currentState = 'showFilter'"/>
     
@@ -84,18 +86,12 @@ limitations under the License.
             compare="catalogPanel.compare(filterPanel.productList.getProducts())"
             initComplete="if (catalog) filterPanel.filter.count = catalog.length"/>
     
-        <productsView:ProductCart id="cartPanel" width="265" height="100%">
-            <productsView:style>
-                <js:SimpleCSSStyles right="{cartGrip.width}" top="0" />
-            </productsView:style>
-        </productsView:ProductCart>
+        <js:Spacer id="spacer" />
+        
+        <productsView:ProductCart id="cartPanel" width="265" height="100%" />
 
         <productsView:Grip id="cartGrip" gripIcon="assets/icon_cart_empty.png"
-            gripTip="Show cart" click="currentState = 'showCart'">
-            <productsView:style>
-                <js:SimpleCSSStyles right="0" top="0"/>
-            </productsView:style>
-        </productsView:Grip>
+            gripTip="Show cart" click="currentState = 'showCart'" />
     
     </js:Container>
         

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/747b6539/examples/FlexJSStore/src/productsView/Grip.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSStore/src/productsView/Grip.mxml b/examples/FlexJSStore/src/productsView/Grip.mxml
index cffdd6c..9fe8427 100755
--- a/examples/FlexJSStore/src/productsView/Grip.mxml
+++ b/examples/FlexJSStore/src/productsView/Grip.mxml
@@ -17,7 +17,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 -->
-<js:VContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
+<js:Container xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:js="library://ns.apache.org/flexjs/basic" 
                   width="17" height="100%" >
     <js:style>
@@ -42,6 +42,9 @@ limitations under the License.
         <js:beads>
             <js:ToolTipBead toolTip="{gripTip}" />
         </js:beads>
+        <js:style>
+            <js:SimpleCSSStyles bottom="0" />
+        </js:style>
     </js:Image>
     
-</js:VContainer>
+</js:Container>


Mime
View raw message