flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [03/41] git commit: [flex-sdk] [refs/heads/develop] - update size of busy cursor for new DPI buckets
Date Sun, 01 Sep 2013 23:40:05 GMT
update size of busy cursor for new DPI buckets


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

Branch: refs/heads/develop
Commit: 252e441a9cf41b63deca1e51779c8e0e03dc2b1a
Parents: 4becba1
Author: Justin Mclean <jmclean@apache.org>
Authored: Sat Aug 10 03:54:30 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Sat Aug 10 03:54:30 2013 +1000

----------------------------------------------------------------------
 .../spark/src/spark/components/BusyIndicator.as | 22 ++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/252e441a/frameworks/projects/spark/src/spark/components/BusyIndicator.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/BusyIndicator.as b/frameworks/projects/spark/src/spark/components/BusyIndicator.as
index b2184ae..f4abed1 100644
--- a/frameworks/projects/spark/src/spark/components/BusyIndicator.as
+++ b/frameworks/projects/spark/src/spark/components/BusyIndicator.as
@@ -324,7 +324,12 @@ public class BusyIndicator extends UIComponent
         
         // Set the default measured size depending on the
         // applicationDPI
-		if (applicationDPI == DPIClassification.DPI_480)
+		if (applicationDPI == DPIClassification.DPI_640)
+		{
+			measuredWidth = 104;
+			measuredHeight = 104;
+		}
+		else if (applicationDPI == DPIClassification.DPI_480)
 		{
 			measuredWidth = 80;
 			measuredHeight = 80;
@@ -339,11 +344,16 @@ public class BusyIndicator extends UIComponent
             measuredWidth = 40;
             measuredHeight = 40;
         }
-        else if (applicationDPI == DPIClassification.DPI_160)
-        {
-            measuredWidth = 26;
-            measuredHeight = 26;
-        }
+		else if (applicationDPI == DPIClassification.DPI_160)
+		{
+			measuredWidth = 26;
+			measuredHeight = 26;
+		}
+		else if (applicationDPI == DPIClassification.DPI_120)
+		{
+			measuredWidth = 20;
+			measuredHeight = 20;
+		}
         else
         {
             measuredWidth = DEFAULT_MINIMUM_SIZE;


Mime
View raw message