Browse Source

childForm弹出框报错bug/Kind列表action列居中

zhuth 7 years ago
parent
commit
b8fbce4bf8

+ 1 - 1
frontend/saas-web/app/view/document/kind/ChildForm.js

@@ -244,7 +244,7 @@ Ext.define('saas.view.document.kind.ChildForm', {
                         //重新设置combo高度
                         var count = combo.store.getCount();
                         var newHeight = count>5?248-(combo.hiddenBtn?50:0):(33*count+(combo.hiddenBtn?0:50));
-                        combo.picker.setHeight(newHeight);
+                        combo.picker && combo.picker.setHeight(newHeight);
                     });
                 }
                 saas.util.BaseUtil.showSuccessToast('保存成功');

+ 1 - 0
frontend/saas-web/app/view/document/kind/KindController.js

@@ -48,6 +48,7 @@ Ext.define('saas.view.document.kind.KindController', {
             return Ext.Array.insert(columns,0,[{
                 xtype:'actioncolumn',
                 text:'操作',
+                align: 'center',
                 items: [{
                     tooltip: '编辑',
                     iconCls: 'x-fa fa-pencil fa-fw',