소스 검색

[core] Fix issue with negative index after scroll

Johan Ahlen 9 년 전
부모
커밋
e7f17e2ee3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -3139,7 +3139,7 @@
         for (var i = 0; i < lastKnownHeights.length; i++) {
           position -= lastKnownHeights[i];
           if (position <= 0) {
-            startIndex = Math.min(allEntries.length - elementIncrement, Math.max(i - elementIncrement, 0));
+            startIndex = Math.max(i - elementIncrement, 0);
             endIndex = Math.min(allEntries.length - 1, i + elementIncrement + visibleEntryCount);
             break;
           }