rc2中的rallygrid列宽问题 [英] Issue with rallygrid column width in rc2

查看:33
本文介绍了rc2中的rallygrid列宽问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Appsdk2 rc2 似乎忽略了用于拉力网格的 columnCfgs 上的宽度参数.

Appsdk2 rc2 seems to be ignoring the width parameter on columnCfgs for rallygrids.

例如:

xtype: 'rallygrid',
columnCfgs: [
    {dataIndex: 'ValueScore', width: 40, text:'Value'}
]

这在 rc1 中以 40 像素的宽度呈现,但在 rc2 中没有.这是一个错误,还是参数改变了?有解决办法吗?

This renders with a 40 pixel width in rc1, but does not in rc2. Is this a bug, or has the parameter changed? Is there a solution for this?

推荐答案

这是 2.0rc2 版本中的一个错误.现在可以通过在列配置中包含 flex: null 来解决网格不正确的操作:

This is a bug in the 2.0rc2 release. For now it can be worked around by including flex: null in your column config to override what the grid is doing incorrectly:

xtype: 'rallygrid',
columnCfgs: [
    {dataIndex: 'ValueScore', width: 40, text:'Value', flex: null}
]

已提交缺陷,应在下一个版本中修复此问题.

A defect has been submitted and this should be fixed for the next release.

这篇关于rc2中的rallygrid列宽问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆