gristlabs_grist-core/app/client/lib
Jarosław Sadziński c1de16aee7 (core) Scrolling to the active record on search
Summary:
Two bugs fixed:
1. On search, when the first result is in the active record, GridView wasn't scrolling to the active record.
2. When an active record was not visible, GridView wasn't scrolling to the active record when the column index was changed.

The problem was that the scrolling behavior was based only on rowIndex which isn't changed (and doesn't notify subscribers) when a column index changes or when the search highlights a cell.
This diff makes the computed depend also on the fieldIndex, and is introducing a new method that can scroll to the active record on demand (which is used by the search).

Test Plan: Updated tests.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3191
2021-12-21 09:57:21 +01:00
..
ACIndex.ts (core) Fix autocomplete selection when options include emoji 2021-10-04 22:58:00 -04:00
ACSelect.ts
autocomplete.ts
browserGlobals.js
browserInfo.ts
chartUtil.ts (core) Brings in the new donut charts. 2021-11-23 08:56:38 +01:00
copyToClipboard.ts
CustomSectionElement.ts
dblclick.ts
Delay.ts
dispose.d.ts
dispose.js
DocPluginManager.ts
dom.js
domAsync.ts
download.js
FocusLayer.ts
fromKoSave.ts
guessTimezone.ts
helpScout.ts (core) Update HelpScout beacon to work with embedded documentation articles. 2021-12-09 22:22:55 -05:00
HomePluginManager.ts
imports.d.ts
imports.js
ImportSourceElement.ts
koArray.d.ts
koArray.js
koArrayWrap.ts
koDom.js (core) Scrolling to the active record on search 2021-12-21 09:57:21 +01:00
koDomScrolly.css
koDomScrolly.js
koForm.css
koForm.js
koSession.js
koUtil.js
loadScript.js
localStorageObs.ts
log.ts
Mousetrap.js
multiselect.css
multiselect.js
ObservableMap.js
ObservableSet.js
ReferenceUtils.ts (core) Use visibleCol instead of displayCol with createFormatter 2021-12-16 22:19:36 +02:00
SafeBrowser.ts
SafeBrowserProcess.css
sessionObs.ts
sortUtil.ts (core) Adding sort options for columns. 2021-11-03 15:31:39 +01:00
tableUtil.ts (core) Check document ID when parsing pasted references 2021-11-30 13:40:17 +02:00
testState.ts
textUtils.ts (core) Check document ID when parsing pasted references 2021-11-30 13:40:17 +02:00
TokenField.ts (core) Disable mousedown on token delete button 2021-09-16 10:45:06 -07:00
uploads.ts (core) Extending Google Drive integration scope 2021-10-01 10:47:12 +02:00
UrlState.ts