I cannot seem to understand what is going on when inserting a row into handsontable. I am trying to update the context menu based on the cell that is clicked. I am updating it beforeOnCellMouseDown by updateSettings. It seems to insert the correct row at first, but then when you click on the handsontable again, the row moves up however many trimmed rows I have (or at least I think). I made two jsfiddles to demonstrate my problem.
The first has the context menu updating onBeforeMouseDown: http://jsfiddle.net/mountaineerfan5/3258oa75/2/
The second does not update the context menu but still calls updateSettings inside the onBeforeMouseDown: http://jsfiddle.net/mountaineerfan5/3258oa75/4/
I thought it had to do with me updating the context menu in some way, but it still has the same behavior in the second jsfiddle, which makes me think it has something to do with updateSettings and the trimRows plugin.
Thanks for your help!