Builder/Provider/Database/generate.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 23 Jul 2010 07:53:44 +0000 (15:53 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 23 Jul 2010 07:53:44 +0000 (15:53 +0800)
Builder/Provider/Database/generate.js

index 5e980bf..25fffe2 100644 (file)
@@ -239,6 +239,7 @@ tables.forEach(function(table) {
         if (e.Type == 'text') {
             xtype = 'TextArea';
         }
+        
         // what about booleans.. -> checkboxes..
         
         
@@ -248,8 +249,10 @@ tables.forEach(function(table) {
             name : row.name,
             width : row.type == 'string' ? 200 : 75,
             '|xns' : 'Roo.form',
-            
-            
+            xtype : xtype
+        }
+        if (xtype == 'TextArea') {
+            form[row.name].height = 100;
         }