Search code examples
javascriptjquerycssrowshandsontable

Handsontable - Change row height


I want to change the height of the rows in mi handsontable. I already change the widht of the columns (colWidths: [75,75,75]), but i cant find the way to do the same with rows.

Thanks!


Solution

  • The problem with that Chachi-inactive is the height gets dynamically set on one of the holder divs

    <div class="wtHolder ht_master" style="position: relative; height: 27px;">
    

    You can find and edit the below code in the main handsontable.js

    columnWidth: 50,
    rowHeight: function (row) {
      return 50;
    },
    defaultRowHeight: 50,
    selections: null,
    hideBorderOnMouseDownOver: false,
    

    This needs to be updated if you have elements below the handsontable table.