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 2016/08/11 20:26:29 UTC
[4/7] git commit: [flex-asjs] [refs/heads/refactor-sprite] - Backed
out previous change that was adversely affecting the SWF version.
Backed out previous change that was adversely affecting the SWF version.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/895f3666
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/895f3666
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/895f3666
Branch: refs/heads/refactor-sprite
Commit: 895f36663e890f12ed15a5bfce5917f779a840cf
Parents: 4ef1bb4
Author: Peter Ent <pe...@apache.org>
Authored: Fri Aug 5 14:16:10 2016 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Fri Aug 5 14:16:10 2016 -0400
----------------------------------------------------------------------
.../flex/html/supportClasses/DataItemRenderer.as | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/895f3666/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataItemRenderer.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataItemRenderer.as
index 71d534a..8b4ad5b 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataItemRenderer.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataItemRenderer.as
@@ -138,23 +138,19 @@ package org.apache.flex.html.supportClasses
{
super.updateRenderer();
- var color:uint = ValuesManager.valuesImpl.getValue(this, "background-color", "selected");
-
background.graphics.clear();
- background.graphics.beginFill(color, (down||selected||hovered)?1:0);
+ background.graphics.beginFill(useColor, (down||selected||hovered)?1:0);
background.graphics.drawRect(0, 0, width, height);
background.graphics.endFill();
}
COMPILE::JS
{
- if (selected) {
- element.className = element.className + " selected";
- }
- else {
- if (element.className.endsWith(" selected")) {
- element.className = element.className.replace(" selected", "");
- }
- }
+ if (selected)
+ element.style.backgroundColor = '#9C9C9C';
+ else if (hovered)
+ element.style.backgroundColor = '#ECECEC';
+ else
+ element.style.backgroundColor = null;
}
}