Kast2k Posted June 5, 2020 Posted June 5, 2020 Dear colleagues, Unidbgrid is paged. When switching between pages then sometimes on different pages vertical scrollbar is calculated wrong and you can see empty screen. May be the same topic was already started but i cant find it. Thank You. Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 10 minutes ago, Kast2k said: Unidbgrid is paged. When switching between pages then sometimes on different pages vertical scrollbar is calculated wrong and you can see empty screen. May be the same topic was already started but i cant find it. Hello, Do you mean vertical scrollbar? Which build of UniGUI are you using? Quote
Kast2k Posted June 5, 2020 Author Posted June 5, 2020 Sherzod, 1.90.0.1528 Yes, vertical scrollbar Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 How can we reproduce this behavior? Simple app? Quote
Kast2k Posted June 5, 2020 Author Posted June 5, 2020 Demo project attached. Problem seems to be in "Display memo" column parameter. GridColumnSort_VertScrollBug.zip bandicam 2020-06-05 11-59-57-663.mp4 Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 1 hour ago, Kast2k said: Demo project attached. Yes I see the "problem". Quote
Kast2k Posted June 5, 2020 Author Posted June 5, 2020 @Sherzod Is it bug or feature? Are You possible ti fix it or it is Sencha problem? Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 Just now, Kast2k said: Is it bug or feature? Are You possible ti fix it or it is Sencha problem? We will investigate this behavior. Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 15 minutes ago, Kast2k said: Is it bug or feature? Are You possible ti fix it or it is Sencha problem? Can you try this approach for now? UniDBGrid1.ClientEvents.ExtEvents [store] function store.load(sender, records, successful, operation, eOpts) { if (this.grid.getView().getEl().select('.x-scroller-spacer').elements[0]) { Ext.get(this.grid.getView().getEl().select('.x-scroller-spacer').elements[0]).setStyle('transform', 'translate3d(100%, 100%, 0px)'); } } Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 16 minutes ago, Sherzod said: function store.load(sender, records, successful, operation, eOpts) { if (this.grid.getView().getEl().select('.x-scroller-spacer').elements[0]) { Ext.get(this.grid.getView().getEl().select('.x-scroller-spacer').elements[0]).setStyle('transform', 'translate3d(100%, 100%, 0px)'); } } Try this: function store.load(sender, records, successful, operation, eOpts) { this.grid.getView().getEl().select('.x-scroller-spacer').remove(); } Quote
Kast2k Posted June 5, 2020 Author Posted June 5, 2020 @Sherzod Basically works, but NG. If last page have no vertical scrollbar then it freezes Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 8 minutes ago, Kast2k said: Basically works, but NG. If last page have no vertical scrollbar then it freezes Then I'm sorry for the hasty decision. Although it works for me. Quote
Kast2k Posted June 5, 2020 Author Posted June 5, 2020 @Sherzod How it works in Chrome. In Firefox it may work or not. Unknown why bandicam 2020-06-05 14-17-38-907.mp4 Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 3 minutes ago, Kast2k said: In Firefox it may work or not. Unknown why Look, are there any errors in the browser console? Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 1 minute ago, Kast2k said: only this appear Yes, it is important... Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 38 minutes ago, Kast2k said: Basically works, but NG. If last page have no vertical scrollbar then it freezes Also try this approach. 1. Remove the above JS codes. 2. Use CSS: .customgrid .x-scroller-spacer { transform: translate3d(100%, 100%, 0px) !important; } 3. UniDBGrid1.LayoutConfig.Cls = customgrid Quote
Kast2k Posted June 5, 2020 Author Posted June 5, 2020 @Sherzod Thank You! Now it works perfect. We will test more of course, but now is OK. Is it possible to add this solution to new release of UniGui? Quote
Sherzod Posted June 5, 2020 Posted June 5, 2020 1 minute ago, Kast2k said: We will test more of course, but now is OK. Is it possible to add this solution to new release of UniGui? Please test more, we will also analyze. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.