EXT Js 6.2.1 Classic grid scroll bar bug Solution

Source: Internet
Author: User

This bug is not found in other versions, refer to the high version code rewrite class to resolve this bug, directly on the code:

1 /**2 * If the list has both a horizontal scroll bar and a vertical scrollbar, when the vertical scroll bar is scrolled to the bottom3 * Click the horizontal scroll bar, scroll bar will automatically scroll to the top4 * 6.2.1 Bug fix5  */6Ext.define (' Override.grid.NavigationModel ', {7Override: ' Ext.grid.NavigationModel ',8     //When the list is clicked9Oncontainermousedown:function(view, mousedownevent) {Ten         varme = This, OneContext =NewExt.grid.CellContext (view), A lastfocused, - position; -         //executes the same name method of the Ext.grid.NavigationModel parent class the         //After you execute this method, if you click on the scroll bar, the value of view.lastfocused will change to ScrollBar -         //you can determine whether you clicked on a scroll bar or a list of contents -         //This will solve the bug . - Me.callsuper ([view, Mousedownevent]); +lastfocused =view.lastfocused; -Position = (View.actionablemode && view.actionposition) | |lastfocused; +         //determines whether the clicked element is a scroll bar, and if so, does nothing A         if(!position | | lastfocused = = = ' ScrollBar ')) { at             return; -         } -  - context.setposition (Position.record, position.column); -Mousedownevent.position =context; - Me.attachclosestcell (mousedownevent); in  -         //If We is not already on that position, set position there. to         if(!me.position.isEqual (context)) { +Me.setposition (Context,NULL, mousedownevent); -         } the     } *});

EXT Js 6.2.1 Classic grid scroll bar bug Solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.