I am currently using either Chrome Version 61.0.3163.100 (Official Build) (64-bit) or Safari Version 11.0 (12604.1.38.1.7) on Mac OS Sierra 10.12.6.
I am looking to create a handsontable that may exceed the screen height:
As I work on this, I have noticed there is always a bottom margin below the table. Does anyone know how to remove it?
var app = angular.module('app', ['ngHandsontable']);
app.controller('Ctrl', ['$scope', '$filter', '$timeout', 'hotRegisterer', function($scope, $filter, $timeout, hotRegisterer) {
$scope.dataJson = [
[5], [7], [5], [7], [5], [7], [5], [7], [5],
[7], [5], [7], [5], [7], [5], [7], [5], [7],
[5], [7], [5], [7], [5], [7], [5], [7], [5],
[7], [5], [7], [5], [7], [5], [7], [5], [7],
[5], [7], [5], [7], [5], [7], [5], [7], [5],
[7], [5], [7], [5], [7], [5], [7]
];
$scope.settings = {
contextMenu: true,
onAfterCreateRow: function(index, amount) {
console.log("onAfterCreateRow");
$timeout(function() {
$scope.$digest();
});
}
};
}]);
<!DOCTYPE html>
<html>
<head>
<script src="https://handsontable.github.io/ngHandsontable/node_modules/angular/angular.js"></script>
<script src="https://docs.handsontable.com/pro/1.8.2/bower_components/handsontable-pro/dist/handsontable.full.js"></script>
<link type="text/css" rel="stylesheet" href="https://docs.handsontable.com/pro/1.8.2/bower_components/handsontable-pro/dist/handsontable.full.min.css">
<script src="https://handsontable.github.io/ngHandsontable/dist/ngHandsontable.js"></script>
</head>
<body ng-app="app">
<div ng-controller="Ctrl">
<hot-table settings="settings" datarows="dataJson"></hot-table>
</div>
</body>
</html>