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/09/04 03:25:04 UTC

[1/3] git commit: [flex-asjs] [refs/heads/develop] - fix right/bottom border visibility

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 93b358a48 -> 47034f5ec


fix right/bottom border visibility


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

Branch: refs/heads/develop
Commit: 331f37a0e4d7ce9b6478032d510ed46264defc83
Parents: 93b358a
Author: Alex Harui <ah...@apache.org>
Authored: Thu Sep 3 15:36:47 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Sep 3 15:36:47 2015 -0700

----------------------------------------------------------------------
 .../js/src/org/apache/flex/html/beads/ContainerView.js  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/331f37a0/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
index 836b008..9ffa43d 100644
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
@@ -244,10 +244,10 @@ org.apache.flex.html.beads.ContainerView.
   this.viewport.layoutViewportBeforeContentLayout(
       !host.isWidthSizedToContent() ?
           host.width - vm.borderMetrics.left - vm.borderMetrics.right -
-                     vm.chromeMetrics.left - vm.chromeMetrics.right : NaN,
+                     vm.chromeMetrics.left - vm.chromeMetrics.right - 1 : NaN,
       !host.isHeightSizedToContent() ?
           host.height - vm.borderMetrics.top - vm.borderMetrics.bottom -
-                     vm.chromeMetrics.top - vm.chromeMetrics.bottom : NaN);
+                     vm.chromeMetrics.top - vm.chromeMetrics.bottom - 1 : NaN);
 };
 
 
@@ -285,17 +285,17 @@ org.apache.flex.html.beads.ContainerView.
 
   if (host.isWidthSizedToContent() && host.isHeightSizedToContent()) {
     host.setWidthAndHeight(viewportSize.width + vm.borderMetrics.left + vm.borderMetrics.right +
-                               vm.chromeMetrics.left + vm.chromeMetrics.right,
+                               vm.chromeMetrics.left + vm.chromeMetrics.right + 1,
                            viewportSize.height + vm.borderMetrics.top + vm.borderMetrics.bottom +
-                               vm.chromeMetrics.top + vm.chromeMetrics.bottom, false);
+                               vm.chromeMetrics.top + vm.chromeMetrics.bottom + 1, false);
   }
   else if (!host.isWidthSizedToContent() && host.isHeightSizedToContent()) {
     host.setHeight(viewportSize.height + vm.borderMetrics.top + vm.borderMetrics.bottom +
-                               vm.chromeMetrics.top + vm.chromeMetrics.bottom, false);
+                               vm.chromeMetrics.top + vm.chromeMetrics.bottom + 1, false);
   }
   else if (host.isWidthSizedToContent() && !host.isHeightSizedToContent()) {
     host.setWidth(viewportSize.width + vm.borderMetrics.left + vm.borderMetrics.right +
-                               vm.chromeMetrics.left + vm.chromeMetrics.right, false);
+                               vm.chromeMetrics.left + vm.chromeMetrics.right + 1, false);
   }
 };
 


[2/3] git commit: [flex-asjs] [refs/heads/develop] - remove borders from image buttons

Posted by ah...@apache.org.
remove borders from image buttons


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

Branch: refs/heads/develop
Commit: a35715874331c5d88958486bf3796bd06c409f14
Parents: 331f37a
Author: Alex Harui <ah...@apache.org>
Authored: Thu Sep 3 15:43:23 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Sep 3 15:43:23 2015 -0700

----------------------------------------------------------------------
 frameworks/projects/HTML/as/defaults.css | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a3571587/frameworks/projects/HTML/as/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/defaults.css b/frameworks/projects/HTML/as/defaults.css
index 6c6dcc0..da3cb48 100644
--- a/frameworks/projects/HTML/as/defaults.css
+++ b/frameworks/projects/HTML/as/defaults.css
@@ -145,6 +145,16 @@ ImageButton
     border-style: none;
 }
 
+ImageButton:hover
+{
+    border-style: none;
+}
+
+ImageButton:active
+{
+    border-style: none;
+}
+
 VContainer
 {
     IBeadView: ClassReference("org.apache.flex.html.beads.ContainerView");


[3/3] git commit: [flex-asjs] [refs/heads/develop] - fix picking up style changes

Posted by ah...@apache.org.
fix picking up style changes


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

Branch: refs/heads/develop
Commit: 47034f5ec57230a3f7bc4cc3210db096a937f958
Parents: a357158
Author: Alex Harui <ah...@apache.org>
Authored: Thu Sep 3 18:23:31 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Sep 3 18:23:31 2015 -0700

----------------------------------------------------------------------
 .../org/apache/flex/core/BindableCSSStyles.as   | 29 ++++++++++++++++++++
 .../src/org/apache/flex/core/SimpleCSSStyles.as | 29 ++++++++++++++++++++
 .../org/apache/flex/core/SimpleCSSValuesImpl.js |  5 +++-
 3 files changed, 62 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/47034f5e/frameworks/projects/Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as b/frameworks/projects/Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as
index 9f8ac05..399fd0b 100644
--- a/frameworks/projects/Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as
+++ b/frameworks/projects/Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as
@@ -46,6 +46,35 @@ package org.apache.flex.core
 			super();
 		}
 		
+        public var styleList:Object = {
+            "top": 1,
+            "bottom": 1,
+            "left": 1,
+            "right": 1,
+            "padding": 1,
+            "paddingLeft": 1,
+            "paddingRight": 1,
+            "paddingTop": 1,
+            "paddingBottom": 1,
+            "margin": 1,
+            "marginLeft": 1,
+            "marginRight": 1,
+            "marginTop": 1,
+            "marginBottom": 1,
+            "verticalAlign": 1,
+            "fontFamily": 1,
+            "fontSize": 1,
+            "color": 1,
+            "fontWeight": 1,
+            "fontStyle": 1,
+            "backgroundAlpha": 1,
+            "backgroundColor": 1,
+            "backgroundImage": 1,
+            "borderColor": 1,
+            "borderStyle": 1,
+            "borderRadius": 1,
+            "borderWidth": 1
+        };
 		
         [Bindable]
         public var top:*;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/47034f5e/frameworks/projects/Core/asjs/src/org/apache/flex/core/SimpleCSSStyles.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/asjs/src/org/apache/flex/core/SimpleCSSStyles.as b/frameworks/projects/Core/asjs/src/org/apache/flex/core/SimpleCSSStyles.as
index b9bfef0..3b156e3 100644
--- a/frameworks/projects/Core/asjs/src/org/apache/flex/core/SimpleCSSStyles.as
+++ b/frameworks/projects/Core/asjs/src/org/apache/flex/core/SimpleCSSStyles.as
@@ -45,6 +45,35 @@ package org.apache.flex.core
 			super();
 		}
 		
+        public var styleList:Object = {
+            "top": 1,
+            "bottom": 1,
+            "left": 1,
+            "right": 1,
+            "padding": 1,
+            "paddingLeft": 1,
+            "paddingRight": 1,
+            "paddingTop": 1,
+            "paddingBottom": 1,
+            "margin": 1,
+            "marginLeft": 1,
+            "marginRight": 1,
+            "marginTop": 1,
+            "marginBottom": 1,
+            "verticalAlign": 1,
+            "fontFamily": 1,
+            "fontSize": 1,
+            "color": 1,
+            "fontWeight": 1,
+            "fontStyle": 1,
+            "backgroundAlpha": 1,
+            "backgroundColor": 1,
+            "backgroundImage": 1,
+            "borderColor": 1,
+            "borderStyle": 1,
+            "borderRadius": 1,
+            "borderWidth": 1
+        };
 		
         public var top:*;
         public var bottom:*;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/47034f5e/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js b/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
index 6f5013a..8eca079 100644
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
+++ b/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
@@ -336,7 +336,10 @@ org.apache.flex.core.SimpleCSSValuesImpl.prototype.applyStyles =
   var styleList = org.apache.flex.core.SimpleCSSValuesImpl.perInstanceStyles;
   var colorStyles = org.apache.flex.core.SimpleCSSValuesImpl.colorStyles;
   var skipStyles = org.apache.flex.core.SimpleCSSValuesImpl.skipStyles;
-  for (var p in styles) {
+  var listObj = styles;
+  if (styles.styleList)
+    listObj = styles.styleList;
+  for (var p in listObj) {
     //if (styleList[p])
     if (skipStyles[p])
       continue;