-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] viewport: infinite loop with hidden headers
When we move the selection we scroll the viewport so that new selection is visible. Previously, the strategy to do this was (when moving up): 1) set the viewport offset to the row above the current topmost row 2) adapt the viewport top/bottom to the new offset 3) repeat while the selection is not visible This doesn't work if the row above the current topmost row is hidden, since it have the same position has the current row. This led to an infinite loop with the structure of the code. With this commit, the hidden rows are skipped in step 1). The loop scrolling the viewport was also rewritten, so it's impossible to have an infinite loop even if there is a bug somewhere. Odoo task 3244431 closes #2342 X-original-commit: e2c9659 Signed-off-by: Rémi Rahir (rar) <[email protected]> Signed-off-by: Minne Adrien (adrm) <[email protected]>
- Loading branch information
1 parent
346711f
commit 2063170
Showing
2 changed files
with
123 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters