Handsontable 中的 Handsontable 下拉高度调整
Handsontable in Handsontable Dropdown Height Adjustment
如何在此下拉菜单中允许固定高度? (纵队车)
我一直在无休止地摆弄以解决身高问题。我想要一个最大 300px 的固定高度下拉菜单。我在 handsontable 站点中使用了 AutoRowSize 高度特征和其他高度特征,但 none 似乎有效。
我 运行 没主意了。我可以尝试任何建议或替代方案吗?
我在 Handsontable 功能中使用 Handsontable (Found Here)。
Fiddle http://jsfiddle.net/72dgoLva/3/
columns: [
{
type: 'handsontable',
handsontable: {
colHeaders: ['Marque', 'Country', 'Parent company'],
autoColumnSize: true,
data: manufacturerData,
getValue: function() {
var selection = this.getSelectedLast();
// Get always manufacture name of clicked row
return this.getSourceDataAtRow(selection[0]).name;
},
}
},
{type: 'numeric'}
]
.handsontableEditor .ht_master {
height: 300px;
overflow-y: auto !important;
width: calc(100% + 2px);
}
.handsontableEditor .ht_clone_top {
transform: none !important;
}
... 似乎可以完成这项工作。 Updated fiddle.
我不得不使用 !important
来动态覆盖 HoT 在元素上放置的内联样式。为限制此影响其他实例的可能性,请为选择器添加此实例的特定标识符前缀。
如何在此下拉菜单中允许固定高度? (纵队车)
我一直在无休止地摆弄以解决身高问题。我想要一个最大 300px 的固定高度下拉菜单。我在 handsontable 站点中使用了 AutoRowSize 高度特征和其他高度特征,但 none 似乎有效。
我 运行 没主意了。我可以尝试任何建议或替代方案吗?
我在 Handsontable 功能中使用 Handsontable (Found Here)。
Fiddle http://jsfiddle.net/72dgoLva/3/
columns: [
{
type: 'handsontable',
handsontable: {
colHeaders: ['Marque', 'Country', 'Parent company'],
autoColumnSize: true,
data: manufacturerData,
getValue: function() {
var selection = this.getSelectedLast();
// Get always manufacture name of clicked row
return this.getSourceDataAtRow(selection[0]).name;
},
}
},
{type: 'numeric'}
]
.handsontableEditor .ht_master {
height: 300px;
overflow-y: auto !important;
width: calc(100% + 2px);
}
.handsontableEditor .ht_clone_top {
transform: none !important;
}
... 似乎可以完成这项工作。 Updated fiddle.
我不得不使用 !important
来动态覆盖 HoT 在元素上放置的内联样式。为限制此影响其他实例的可能性,请为选择器添加此实例的特定标识符前缀。