我最近从0.8.23升级到0.10.3并且我遇到了一个奇怪的问题 - 垂直滚动条没有显示出来。
我在同一页面上附了2个截图(一个是0.8.23,另一个是0.10.3)
代码是一样的。
答案 0 :(得分:1)
以下是该版本的滚动条工作on jsfiddle的示例。如果您发布的代码如果无法发现差异也会有所帮助。
这是jQuery:
$(document).ready(function () {
var data = [
["", "Maserati", "Mazda", "Mercedes", "Mini", "Mitsubishi"],
["2009", 0, 2941, 4303, 354, 5814],
["2010", 5, 2905, 2867, 412, 5284],
["2011", 4, 2517, 4822, 552, 6127],
["2012", 2, 2422, 5399, 776, 4151],
["2009", 0, 2941, 4303, 354, 5814],
["2009", 0, 2941, 4303, 354, 5814],
["2010", 5, 2905, 2867, 412, 5284],
["2011", 4, 2517, 4822, 552, 6127],
["2012", 2, 2422, 5399, 776, 4151],
["2009", 0, 2941, 4303, 354, 5814],
["2009", 0, 2941, 4303, 354, 5814],
["2010", 5, 2905, 2867, 412, 5284],
["2011", 4, 2517, 4822, 552, 6127],
["2012", 2, 2422, 5399, 776, 4151],
["2009", 0, 2941, 4303, 354, 5814],
["2009", 0, 2941, 4303, 354, 5814],
["2010", 5, 2905, 2867, 412, 5284],
["2011", 4, 2517, 4822, 552, 6127],
["2012", 2, 2422, 5399, 776, 4151],
["2009", 0, 2941, 4303, 354, 5814],
["2009", 0, 2941, 4303, 354, 5814],
["2010", 5, 2905, 2867, 412, 5284],
["2011", 4, 2517, 4822, 552, 6127],
["2012", 2, 2422, 5399, 776, 4151],
["2009", 0, 2941, 4303, 354, 5814],
["2009", 0, 2941, 4303, 354, 5814],
["2010", 5, 2905, 2867, 412, 5284],
["2011", 4, 2517, 4822, 552, 6127],
["2012", 2, 2422, 5399, 776, 4151],
["2009", 0, 2941, 4303, 354, 5814],
["2009", 0, 2941, 4303, 354, 5814],
["2010", 5, 2905, 2867, 412, 5284],
["2011", 4, 2517, 4822, 552, 6127],
["2012", 2, 2422, 5399, 776, 4151],
["2009", 0, 2941, 4303, 354, 5814],
["2009", 0, 2941, 4303, 354, 5814],
["2010", 5, 2905, 2867, 412, 5284],
["2011", 4, 2517, 4822, 552, 6127],
["2012", 2, 2422, 5399, 776, 4151],
["2009", 0, 2941, 4303, 354, 5814],
["2009", 0, 2941, 4303, 354, 5814],
["2010", 5, 2905, 2867, 412, 5284],
["2011", 4, 2517, 4822, 552, 6127],
["2012", 2, 2422, 5399, 776, 4151],
["2009", 0, 2941, 4303, 354, 5814],
["2009", 0, 2941, 4303, 354, 5814],
["2010", 5, 2905, 2867, 412, 5284],
["2011", 4, 2517, 4822, 552, 6127],
["2012", 2, 2422, 5399, 776, 4151],
["2009", 0, 2941, 4303, 354, 5814]
];
$('#example').handsontable({
data: data,
minSpareRows: 1,
scrollV: 'auto',
colHeaders: true,
contextMenu: true
});
function bindDumpButton() {
$('body').on('click', 'button[name=dump]', function () {
var dump = $(this).data('dump');
var $container = $(dump);
console.log('data of ' + dump, $container.handsontable('getData'));
});
}
bindDumpButton();
});
答案 1 :(得分:0)
只是你改变了" jquery.handsontable.full.js"在这个函数中,WalkontableSettings(实例,设置)改变" renderAllRows"属于真实。