Stop RTE with DataGrid inside ViewStack

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

Branch: refs/heads/master
Commit: 5048ff082d209b868a7c89d1013d51b15bda70eb
Parents: 31d7980
Author: Justin Mclean <jmcl...@apache.org>
Authored: Tue Jul 30 23:07:30 2013 +1000
Committer: Justin Mclean <jmcl...@apache.org>
Committed: Tue Jul 30 23:07:30 2013 +1000

----------------------------------------------------------------------
 frameworks/projects/mx/src/mx/controls/DataGrid.as | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/5048ff08/frameworks/projects/mx/src/mx/controls/DataGrid.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mx/src/mx/controls/DataGrid.as 
b/frameworks/projects/mx/src/mx/controls/DataGrid.as
index 34145e3..94f3b8a 100644
--- a/frameworks/projects/mx/src/mx/controls/DataGrid.as
+++ b/frameworks/projects/mx/src/mx/controls/DataGrid.as
@@ -3589,6 +3589,10 @@ public class DataGrid extends DataGridBase implements 
IIMESupport
     protected function drawVerticalLine(s:Sprite, colIndex:int, color:uint, 
x:Number):void
     {
         var contentHolder:ListBaseContentHolder = s.parent.parent as 
ListBaseContentHolder;
+               
+               if (isNaN(contentHolder.height))
+                       return;
+               
         //draw our vertical lines
         var g:Graphics = s.graphics;
         g.lineStyle();

Reply via email to