Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 282425
Collapse All | Expand All

(-)js/org/eclipse/swt/widgets/Table.js (+10 lines)
Lines 791-796 Link Here
791
            } else if( topIndex > this._itemCount ) {
791
            } else if( topIndex > this._itemCount ) {
792
              topIndex = this._itemCount;
792
              topIndex = this._itemCount;
793
            }
793
            }
794
            // Fix for bug #282425:
795
            // If gotoIndex points one of the items of the last page, when PageDown
796
            // is used, the top index is set so the last page to be visible
797
            var lastPageTopIndex = this._itemCount - this._getFullyVisibleRowCount();
798
            if(    gotoIndex > lastPageTopIndex
799
                && gotoIndex < this._itemCount
800
                && keyIdentifier === "PageDown" )
801
            {
802
              topIndex = lastPageTopIndex;
803
            }
794
            this._internalSetTopIndex( topIndex, true );
804
            this._internalSetTopIndex( topIndex, true );
795
          }
805
          }
796
          this.setFocusIndex( gotoIndex );
806
          this.setFocusIndex( gotoIndex );

Return to bug 282425