Roo/bootstrap/MonthField.js
authorEdward <edward@roojs.com>
Mon, 31 Aug 2015 08:15:30 +0000 (16:15 +0800)
committerEdward <edward@roojs.com>
Mon, 31 Aug 2015 08:15:30 +0000 (16:15 +0800)
Roo/bootstrap/MonthField.js

index 707adfb..9c74c84 100644 (file)
@@ -75,6 +75,10 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input,  {
         
         this.picker().addClass('datepicker-dropdown');
         
+        Roo.each(this.picker().select('tbody > tr > td', true).elements, function(v){
+            v.setStyle('width', '189px');
+        });
+        
         this.fillMonths();
         this.update();
         
@@ -336,8 +340,7 @@ Roo.apply(Roo.bootstrap.MonthField,  {
             cn: [
             {
                 tag: 'td',
-                colspan: '7',
-                style: 'width: 189px;'
+                colspan: '7'
             }
             ]
         }