我使用handontable进行大量数据/行,当我向上和向下滚动或排序时,列有时会与标题行单元格不对齐。
图像:
我正在使用' // handsontable.com/dist/handsontable.full.css'和' // handsontable.com/dist/handsontable.full.js'作为我的来源,目前指向v.0.20.0。
这是我的初始代码:
window.hoTable = new Handsontable($("#results")[0], {
data: cleansedArray, //array of arrays
colHeaders: ["Title", "Site", "Dates", "Links", "Non-product Links", "Meta", "Categories", "Tags", "Products", "Images"],
rowHeaders: false,
stretchH: 'all',
columnSorting: true,
contextMenu: false,
className: "htLeft htMiddle",
readOnly: true,
colWidths: [10, 5, 10, 5, 8, 18, 6, 6, 16, 16],
columns: [
{ data: 0, type: 'text', editor: false, disableVisualSelection: true, renderer: titleRenderer },
{ data: 1, type: 'text', editor: false, disableVisualSelection: true, renderer: siteRenderer },
{ data: 2, type: 'text', editor: false, disableVisualSelection: true, renderer: datesRenderer },
{ data: 3, type: 'text', editor: false, disableVisualSelection: true, renderer: linksRenderer },
{ data: 4, type: 'text', editor: false, disableVisualSelection: true, renderer: nonproductLinksRenderer },
{ data: 5, type: 'text', editor: false, disableVisualSelection: true, renderer: metaRenderer },
{ data: 6, type: 'text', editor: false, disableVisualSelection: true, renderer: categoriesRenderer },
{ data: 7, type: 'text', editor: false, disableVisualSelection: true, renderer: tagsRenderer },
{ data: 8, type: 'text', editor: false, disableVisualSelection: true, renderer: productsRenderer },
{ data: 9, type: 'text', editor: false, disableVisualSelection: true, renderer: imagesRenderer }
]
});
其他人遇到此事吗?非常感谢,非常感谢!