Kast2k Posted June 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share Posted June 5, 2020 Sherzod, 1.90.0.1528 Yes, vertical scrollbar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share Posted June 5, 2020 How can we reproduce this behavior? Simple app? Quote Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share Posted June 5, 2020 OK, i will prepare and add to topic Quote Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share Posted June 5, 2020 1 hour ago, Kast2k said: Demo project attached. Yes I see the "problem". Quote Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share Posted June 5, 2020 @Sherzod Is it bug or feature? Are You possible ti fix it or it is Sencha problem? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share Posted June 5, 2020 @Sherzod Doesnt work. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share Posted June 5, 2020 Works for me. Which browser are you using? Quote Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share Posted June 5, 2020 @Sherzod Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share Posted June 5, 2020 Can you check on Chrome for a test? Quote Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share Posted June 5, 2020 @Sherzod Yes, here is users Chrome Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share Posted June 5, 2020 @Sherzod Basically works, but NG. If last page have no vertical scrollbar then it freezes Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share Posted June 5, 2020 @Sherzod only this appear Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share Posted June 5, 2020 1 minute ago, Kast2k said: only this appear Yes, it is important... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
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.