flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-33559 Fixed horizontal scrolling for data grid with no data.
Date Thu, 16 May 2013 03:20:28 GMT
Updated Branches:
  refs/heads/develop 35bb3da64 -> 69f4c4dd7


FLEX-33559 Fixed horizontal scrolling for data grid with no data.


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

Branch: refs/heads/develop
Commit: 69f4c4dd7d351767dbcf9b6723d7495d9f1a6598
Parents: 35bb3da
Author: Justin Mclean <jmclean@apache.org>
Authored: Thu May 16 13:05:27 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Thu May 16 13:05:27 2013 +1000

----------------------------------------------------------------------
 .../spark/components/gridClasses/GridDimensions.as |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/69f4c4dd/frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
b/frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
index f60ae79..ec0a003 100644
--- a/frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
+++ b/frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
@@ -951,13 +951,17 @@ public class GridDimensions
         if ((col < 0) || (col >= _columnCount))
             return null;
         
-        if (_columnCount == 0 || _rowCount == 0)
+        if (_columnCount == 0)
             return new Rectangle(0, 0, 0, 0);
 
         const x:Number = getCellX(0, col);
         const y:Number = getCellY(0, col);
         const colWidth:Number = getColumnWidth(col);
-        const colHeight:Number = getCellY(_rowCount - 1, col) + getRowHeight(_rowCount -
1) - y;
+        var colHeight:Number = 0;
+		
+		if (_rowCount > 0)
+			colHeight = getCellY(_rowCount - 1, col) + getRowHeight(_rowCount - 1) - y;
+
         return new Rectangle(x, y, colWidth, colHeight);
     }
     


Mime
View raw message