Having trouble getting Handsontable to scroll smoothly in Chrome?

I'm currently facing an issue with handsontable specifically on Chrome. The problem is that although the table itself is scrollable, the values and row headings within the table do not update as they should. You can see the issue illustrated in the images below.

Not Scrolled

https://i.sstatic.net/AOA20.png

Scrolled to Right and Down

https://i.sstatic.net/M8gl3.png

As shown, scrolling works but the data does not refresh. Interestingly, this behavior only occurs in Chrome. Firefox and Safari display the table properly.

Here are some key details about my setup:

  • Using Handsontable 0.28.0
  • Utilizing AngularJS and Angular Material

The code snippet below outlines how I generated this example:

var Handsontable = require('handsontable');
// This function locates a specific div, clears its contents, and then generates the table.
$scope.setSheet = function() {
   
    var elementID = "shreadsheet-" + $scope.tabData.id;
    var element = document.getElementById(elementID);
    element.innerHTML = '';
    var readonlyArr = $scope.tabData.sheetHeaders.map(function() {
        return {readOnly : true};
    });
    var hot = new Handsontable(element, {
        data: Handsontable.helper.createSpreadsheetData(1000, 1000),
        colWidths: 47,
        rowHeaders: true,
        colHeaders: true
    });
};

To compile this code, I used the following command sourced from the Handsontable github page documentation:

SheetController_work.js -o SheetController.js -r moment -r pikaday -r zeroclipboard -r numbro

Has anyone encountered a similar issue in Google Chrome or have any suggestions to resolve it?

Thank you.

Answer №1

Fortunately, I was able to resolve this issue without much trouble. Here's what transpired between the time I first noticed the problem and when it mysteriously disappeared. Feel free to give these steps a try if you encounter a similar issue:

  • Restart your computer (didn't solve the issue on its own)
  • Shutdown localhost server via terminal and navigate to a different directory
  • Close the terminal application
  • Quit Google Chrome

UPDATE: Problem Fixed!

All I had to do was remove the variableRowHeights: false parameter, and now everything is functioning perfectly.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Failure to execute Ajax request when searching for a query

My personal GitHub profile viewer React application allows you to search for a profile by username. By default, my own GitHub username is provided on the landing page. However, when trying to search for another user, my ajax call is not functioning properl ...

Issue with smart table sorting functionality

I've been working on a table with just one column that is populated from a string array. However, I'm struggling to get the sorting functionality to work properly. Can anyone pinpoint what mistake I might be making here? Steps taken so far: 1) ...

Click Action on CanJS Table

I am currently developing a canJS application and have been able to successfully handle the click event for an HTML table using the code below. 'table td click':function(el,event){ console.log('clicked ',el.text()); } ...

`Is there a way to modify the zAxis of a Paper component in Material-UI?`

Hello, I am curious about how to change the z-axis of a paper from MUI. https://i.sstatic.net/iKXLG.jpg The issue I'm facing is that the carousel is overlapping my menu and I need the menu to be on top of everything. Here is how I have it structure ...

Ensuring typescript req.user in Passport JS is always defined: Best practices

When utilizing Passport JS, the req.user within the route is considered potentially undefined. However, the middleware prior to my route method ensures that this scenario does not occur. How can I convey this information to TypeScript? Object may be &apos ...

How come the link function of my directive isn't being triggered?

I'm encountering a strange issue with this directive: hpDsat.directive('ngElementReady', [function() { return { restrict: "A", link: function($scope, $element, $attributes) { // put watche ...

Translate CSS into JavaScript while maintaining selector understanding

I am interested in developing a tool that can read a .css file and generate a function that will accept an array of class names as input and output the corresponding styles for an element with those classes, represented as a JavaScript object. This tool wo ...

AngularJS - Interactive web pages powered by controller scripts

I am experiencing an issue with my AngularJS page where a popup is not displaying correctly. The popup HTML is fetched dynamically from the server using an AJAX request, including a new controller and relevant AngularJS code. The problem arises when the ch ...

Repeatedly Triggered JQuery AJAX Calls

On my web page, I have implemented a feature that allows users to search for an address using a GIS server's web-service. This functionality is triggered by a button click event which calls a JQuery AJAX method. Upon successful retrieval of address da ...

What is the best way to implement auto-saving functionality for multiple form fields in a React application?

Whenever I make changes to the first and second columns of an item in a text field, the onBlur event triggers an auto-save. This results in the entire row being reloaded due to the update caused by the first column's save. Is there a way to prevent t ...

Display an error notification when the user fails to provide the necessary quantity of numbers in AngularJS

Hey there, I'm currently diving into the world of AngularJS development and facing some challenges with form validations. I have an input field that should only accept a maximum of 8 digits. My goal is to display an error message if less than or more ...

The margin of the parent container is influencing the margin of the child element

Purple Working on displaying a rectangle shape in a browser using divs in my React project. Everything works fine, but when I add margin to the parent base and then draw the boxes, there's some space between the mouse cursor and the actual box. The ...

angular.filter function includes groupBy, toArray, and fuzzy operations

I am currently implementing the angular.filter library in AngularJS found here: angular.filter and my objective is to utilize ng-repeat on the following data structure. https://i.sstatic.net/SaVhE.png Upon combining the three directives - groupBy, toArra ...

What are some ways to enhance the functionality of the initComplete feature in Dat

$('#example').dataTable( { "initComplete": function(settings, json) { alert( 'DataTables has finished its initialisation.' ); } } ); Is there a way to extend the initComplete function for other languages? $.extend( true, $.f ...

Exploring elements in firebase

I am currently in the process of expanding an application to utilize firebase as the backend in order to learn more about firebase/angularjs. My setup resembles this . Within my code, I have linked firebaseio.com/projects to $scope.projects. How can I ...

Troubleshooting problem with displaying circular tag image below an image using Jquery

I'm looking to enhance my HTML DOM by adding circular tag images with dimensions of 25x25 pixels to all image tags. While my current method is functional, I've noticed that the position sometimes shifts and the tag often ends up displayed below t ...

How can I create a parent div with cursor-pointer and apply inline styling to make all child elements

Is there a way to apply the cursor-pointer style to an entire div with inline CSS without it affecting just the white space around the child elements? I have tried using position and z-index without success. I am unable to use an external stylesheet for t ...

Is there a way to cross-reference a city obtained from geolocation with the cities stored in my database, and if a match is found, send the corresponding ID

Here's the script I'm currently working with: <script type="text/javascript"> search = new Vue({ el: '#offers', data: { data: [], authType: '{{uid}}', key : '1', wi ...

The Safari 7.1+ browser seems to be having trouble with the spotlight effect

Why is the CodePen not functioning properly in Safari? Despite working well in Chrome and Firefox, it completely fails to work in Safari 7.1+. Can anyone provide some insights? http://codepen.io/cchambers/pen/Dyldj $(document).on("mousemove", function( ...

The image tag in HTML is unable to display as an image within the jQuery object

After converting the object "suggestion" to a string, I have data stored in the "sugestion" variable like this: {"value":"<img src=\"http://localhost/erp/assets/images/product/123.jpg\"> 123123123 t-shirt","data":"ABC098765"} Unfortunatel ...