Jump to content

Recommended Posts

Posted

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.

 

ubidbg.png

Posted
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?

 

Posted
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)');
    }
}

 

Posted
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();
}

 

Posted
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.

Posted
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

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...