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/15 18:55:09 UTC

git commit: [flex-asjs] [refs/heads/develop] - more tweaks for FireFox

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 <ah...@apache.org>
Authored: Tue Sep 15 09:55:43 2015 -0700
Committer: Alex Harui <ah...@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';