flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - more tweaks for FireFox
Date Tue, 15 Sep 2015 16:55:09 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 1a580f49a -> 8677a786a


more tweaks for FireFox


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

Branch: refs/heads/develop
Commit: 8677a786a46cd0f3485877856642fb4ce2afe2af
Parents: 1a580f4
Author: Alex Harui <aharui@apache.org>
Authored: Tue Sep 15 09:55:43 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Sep 15 09:55:43 2015 -0700

----------------------------------------------------------------------
 .../projects/Flat/js/src/org/apache/flex/flat/DropDownList.js    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8677a786/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js b/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js
index 9b242d8..561f23c 100644
--- a/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js
+++ b/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js
@@ -203,8 +203,8 @@ org.apache.flex.flat.DropDownList.prototype.addedToParent = function()
{
   s = /** @type {string} */ (cv.borderRightWidth);
   var br = org.apache.flex.utils.CSSUtils.toNumber(s);
   var caretWidth = this.caret.offsetWidth;
-  // is 4 for spacing between spans?
-  var fluff = pl + pr + bl + br + caretWidth + 1 + 4;
+  // 10 seems to factor spacing between span and extra FF padding?
+  var fluff = pl + pr + bl + br + caretWidth + 1 + 10;
   var labelWidth = this.width - fluff;
   var strWidth = labelWidth.toString();
   strWidth += 'px';


Mime
View raw message