Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling bug on TabMyDelegations #1572

Closed
fedekunze opened this issue Nov 14, 2018 · 11 comments · Fixed by #1757
Closed

Scrolling bug on TabMyDelegations #1572

fedekunze opened this issue Nov 14, 2018 · 11 comments · Fixed by #1757
Assignees
Labels
bug 🐛 issues related to unhandled errors in the code that need to be fixed high priority ❗

Comments

@fedekunze
Copy link
Contributor

Description:

There's a scroll related bug on the TabMyDelegations page that displays an empty page (see screenshot).

Steps to reproduce (using yarn start with old testnet):

  1. Go to Staking > tab Validators
  2. Scroll all the way to the bottom of the validators index
  3. Click tab My Delegations
  4. Tab displays empty page

screen shot 2018-11-14 at 12 02 17 pm

@fedekunze fedekunze added bug 🐛 issues related to unhandled errors in the code that need to be fixed high priority ❗ labels Nov 14, 2018
@fedekunze
Copy link
Contributor Author

cc: @jbibla

@fedekunze
Copy link
Contributor Author

we'll probably have to check this on other existing tabs as well

@jbibla
Copy link
Collaborator

jbibla commented Nov 14, 2018

do you know what the problem is?

my guess: the scroll position doesn't reset when changing routes.

@faboweb
Copy link
Collaborator

faboweb commented Nov 14, 2018

the scroll position doesn't reset when changing routes.

that was our guess as well

@fedekunze fedekunze self-assigned this Nov 19, 2018
@fedekunze
Copy link
Contributor Author

fedekunze commented Nov 20, 2018

can't reproduce/fix on local testnet since we only have one validator

@faboweb
Copy link
Collaborator

faboweb commented Nov 20, 2018

You could use the mocked connection and edit lcdClientMock to have 50 validators

@faboweb faboweb assigned jbibla and unassigned fedekunze Nov 27, 2018
@jbibla
Copy link
Collaborator

jbibla commented Dec 17, 2018

it's not obvious to me why we need the perfect scroll plugin. can we remove it and rely on css?

@faboweb
Copy link
Collaborator

faboweb commented Dec 17, 2018

Can you ask @nylira why he added it in the first place? Maybe it serves a purpose.

@jbibla
Copy link
Collaborator

jbibla commented Dec 17, 2018

from @nylira: "it was to normalize the app design between multiple operating systems. For example, Windows and Linux have ugly default scrollbars that we cannot style. It also eats into the horizontal space of the app itself, as well as making scrolling popups and panels look not as great."

i would vote to remove it. i have no issue with native scrollbars and don't think we need this extra dependency.

i will also fix the bug reported in this issue.

@faboweb
Copy link
Collaborator

faboweb commented Dec 18, 2018

I remember that there was an issue on Windows with the scrollbar. Could you check there first before removing the plugin?

@jbibla
Copy link
Collaborator

jbibla commented Dec 18, 2018

I remember that there was an issue on Windows with the scrollbar. Could you check there first before removing the plugin?

i'm going to open a ticket to address this as it is a low priority refactor and requires much work to work properly without it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 issues related to unhandled errors in the code that need to be fixed high priority ❗
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants