Fix nbrowser test failures (#837)

This commit is contained in:
George Gevoian
2024-02-01 10:45:18 -05:00
committed by GitHub
parent 866ec66096
commit 5e6abeb165
7 changed files with 47 additions and 20 deletions

View File

@@ -295,6 +295,15 @@ GridView.gridCommands = {
}
this.cursor.rowIndex(this.cursor.rowIndex() - 1);
},
cursorLeft: function() {
// This conditional exists so that when users have the cursor in the leftmost column but
// are not scrolled to the left i.e. in the case of a wide column, pressing left again will
// scroll the pane to the left.
if (this.cursor.fieldIndex() === 0) {
this.scrollPane.scrollLeft = 0;
}
this.cursor.fieldIndex(this.cursor.fieldIndex() - 1);
},
shiftDown: function() { this._shiftSelect({step: 1, direction: 'down'}); },
shiftUp: function() { this._shiftSelect({step: 1, direction: 'up'}); },
shiftRight: function() { this._shiftSelect({step: 1, direction: 'right'}); },

View File

@@ -19,6 +19,7 @@
margin-left: -16px; /* to include drag handle that shows up on hover */
margin-bottom: 4px;
white-space: nowrap;
overflow: hidden;
}
.viewsection_title, .viewsection_title_font {