Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 SDK 的早期版本中,指定align : 'center'列rallygrid配置将导致列内容和列标题都水平居中。如果我现在指定此设置,则内容居中但不是标题。对于相对较宽的列,这会成为一个问题,因为列标题不再与列内容对齐。是否有单独的标题对齐设置,还是需要使用 CSS 来完成?
align : 'center'
rallygrid
例子:
这是 2.0rc2 中由重新设置网格标题引入的错误。我们在产品中从来没有居中的标题,所以我们将它们设置为默认的左对齐并且不小心破坏了居中对齐。
您可以通过在您的应用程序 css 中添加以下 css 覆盖来解决此问题:
.yes-harmonized .rally-grid.x-grid .x-grid-header-ct .x-box-inner .x-column-header .x-column-header-inner { display: block; }