Unwanted horizontal scroll on filtering and grid rows order setting

Two separate bugs similar by nature.

  1. Create a grid using the following line
    grok.shell.addTableView(grok.data.demo.randomWalk(100, 100)),

then open filters viewer. Scroll horizontally the content of the grid all the way to the right. Start filtering by any column. The grid automatically starts scrolling back to the left which is a bug.

  1. Run the snippet below. Scroll horizontally the content of the grid all the way to the right. Make multiple clicks on the “Click” button of the dialog. and watch how the grid automatically scrolls back to to the left.

let gridd = grok.shell.addTableView(grok.data.demo.randomWalk(100, 100)).grid;
let dial = ui.dialog(“BUG Demo”);

dial.addButton("Click", () => {
    gridd.setRowOrder([1, 56, 3, 6, 4]);
 });

dial.show();

In both cases the grid should retain the original scroll value.