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. 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? 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 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? 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 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 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". 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? 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. 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)'); } } Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share Posted June 5, 2020 @Sherzod Doesnt work. 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? Link to comment Share on other sites More sharing options...
Kast2k Posted June 5, 2020 Author Share Posted June 5, 2020 @Sherzod 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? 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 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(); } 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 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. 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 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? 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 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... 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 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? 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now