flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [4/5] git commit: [flex-asjs] [refs/heads/develop] - let the base class draw the background
Date Thu, 30 Jul 2015 18:23:50 GMT
let the base class draw the background


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

Branch: refs/heads/develop
Commit: 2174b05975ce366520ad8b3629ce7caed6273514
Parents: 67fa950
Author: Alex Harui <aharui@apache.org>
Authored: Thu Jul 30 07:05:43 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Jul 30 10:54:53 2015 -0700

----------------------------------------------------------------------
 .../flex/html/supportClasses/StringItemRenderer.as       | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2174b059/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/StringItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/StringItemRenderer.as
b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/StringItemRenderer.as
index 8dbd73b..3540b78 100644
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/StringItemRenderer.as
+++ b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/StringItemRenderer.as
@@ -52,6 +52,7 @@ package org.apache.flex.html.supportClasses
 			textField.type = TextFieldType.DYNAMIC;
 			textField.autoSize = TextFieldAutoSize.LEFT;
 			textField.selectable = false;
+            textField.parentDrawsBackground = true;
 		}
 		
 		public var textField:CSSTextField;
@@ -118,15 +119,5 @@ package org.apache.flex.html.supportClasses
 			else textField.text = String(value);
 		}
 		
-		/**
-		 * @private
-		 */
-		override public function updateRenderer():void
-		{
-			super.updateRenderer();
-			
-			textField.background = (down || selected || hovered);
-			textField.backgroundColor = backgroundColor;
-		}
 	}
 }


Mime
View raw message