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

Jordan/1572 scroll bug #1757

Merged
merged 2 commits into from
Dec 19, 2018
Merged

Jordan/1572 scroll bug #1757

merged 2 commits into from
Dec 19, 2018

Conversation

jbibla
Copy link
Collaborator

@jbibla jbibla commented Dec 18, 2018

Closes #1572

Description:

  • added perfect scroll to PageStaking and PageGovernance so when switching tabs the user is brought to the top of the page.
  • vue router's built in scroll behaviour doesn't work for us at the moment because of many previous styling choices

❤️ Thank you!


  • Added entries in CHANGELOG.md with issue # and GitHub username
  • Reviewed Files changed in the github PR explorer

@codecov
Copy link

codecov bot commented Dec 18, 2018

Codecov Report

Merging #1757 into develop will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1757      +/-   ##
===========================================
+ Coverage     97.7%   97.71%   +<.01%     
===========================================
  Files          102      102              
  Lines         2096     2102       +6     
  Branches        93       93              
===========================================
+ Hits          2048     2054       +6     
  Misses          39       39              
  Partials         9        9
Impacted Files Coverage Δ
...pp/src/renderer/components/staking/PageStaking.vue 100% <100%> (ø) ⬆️
.../renderer/components/governance/PageGovernance.vue 100% <100%> (ø) ⬆️

@@ -66,6 +67,12 @@ export default {
// TODO: get min deposit denom from gov params
...mapGetters([`proposals`, `filters`, `bondingDenom`, `connected`])
},
mounted() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about putting this logic into TmPage?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know 😞... but i want to get rid of TmPage and also only should run where tabs are present (not on wallet, transactions, or preferences). also, after we bring tendermint-ui into voyager this kind of thing will be easier / more obvious.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's an issue for it on #1391

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Leaving it to @faboweb to merge if he agrees with the changes

@faboweb faboweb merged commit 726bf8b into develop Dec 19, 2018
@faboweb faboweb deleted the jordan/1572-scroll-bug branch December 19, 2018 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scrolling bug on TabMyDelegations
3 participants