You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bi...@apache.org on 2014/11/24 22:13:06 UTC

[16/44] git commit: [flex-sdk] [refs/heads/develop] - Remove labeldisplayshadow since it is not required

Remove labeldisplayshadow since it is not required


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

Branch: refs/heads/develop
Commit: 89e7d8c395cba68490c1af404d7039f9cf8aba9b
Parents: 33ba189
Author: OmPrakash Muppirala <bi...@gmail.com>
Authored: Fri Oct 3 16:20:08 2014 -0700
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Fri Oct 3 16:20:08 2014 -0700

----------------------------------------------------------------------
 .../src/spark/skins/ios7/ButtonSkin.as          | 25 --------------------
 1 file changed, 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/89e7d8c3/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as b/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as
index 44f362f..7c19e5a 100644
--- a/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as
+++ b/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as
@@ -278,18 +278,6 @@ public class ButtonSkin extends ButtonSkinBase
     override protected function createChildren():void
     {
         super.createChildren();
-        
-        if (!labelDisplayShadow && labelDisplay)
-        {
-            labelDisplayShadow = StyleableTextField(createInFontContext(StyleableTextField));
-            labelDisplayShadow.styleName = this;
-            labelDisplayShadow.colorName = "textShadowColor";
-            labelDisplayShadow.useTightTextBounds = false;
-            
-            // add shadow before display
-            addChildAt(labelDisplayShadow, getChildIndex(labelDisplay));
-        }
-        
         setStyle("textAlign", "center");
     }
     
@@ -336,18 +324,6 @@ public class ButtonSkin extends ButtonSkinBase
         
         layoutBorder(unscaledWidth, unscaledHeight);
         
-        // update label shadow
-        labelDisplayShadow.alpha = getStyle("textShadowAlpha");
-        labelDisplayShadow.commitStyles();
-        
-        // don't use tightText positioning on shadow
-        setElementPosition(labelDisplayShadow, labelDisplay.x, labelDisplay.y + 1);
-        setElementSize(labelDisplayShadow, labelDisplay.width, labelDisplay.height);
-        
-        // if labelDisplay is truncated, then push it down here as well.
-        // otherwise, it would have gotten pushed in the labelDisplay_valueCommitHandler()
-        if (labelDisplay.isTruncated)
-            labelDisplayShadow.text = labelDisplay.text;
     }
     
     /**
@@ -392,7 +368,6 @@ public class ButtonSkin extends ButtonSkinBase
     override protected function labelDisplay_valueCommitHandler(event:FlexEvent):void 
     {
         super.labelDisplay_valueCommitHandler(event);
-        labelDisplayShadow.text = labelDisplay.text;
     }
     
 }