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

[Stats Refresh] remove extra space when 'No data' shown #11813

Merged
merged 3 commits into from
May 30, 2019

Conversation

ScoutHarris
Copy link
Contributor

@ScoutHarris ScoutHarris commented May 29, 2019

Fixes #11798

The problem stemmed from toggling two top constraints on the row stack view depending on if the subtitles are shown or not. This wasn't working very well when the cells were reused. Now there is only one top constraint, and is modified per subtitle visibility.

To test:


  • On a site with no data, go to Stats.
  • On Insights and Periods, verify when No data... is displayed there is no longer extra space above the label. Example:

example


  • Switch to a site with data, and go to Stats.
  • For that stats that previously showed No data... verify the subtitles are shown correctly. Example:

no_data

data

Update release notes:

  • If there are user facing changes, I have added an item to RELEASE-NOTES.txt.

@ScoutHarris ScoutHarris added this to the 12.6 milestone May 29, 2019
@ScoutHarris ScoutHarris self-assigned this May 29, 2019
@ScoutHarris ScoutHarris mentioned this pull request May 29, 2019
45 tasks
Copy link
Contributor

@danielebogo danielebogo left a comment

Choose a reason for hiding this comment

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

Hey @ScoutHarris ! Thanks for fixing this!
I left 2 small comments. Let me know when it's done so I'll give it another look!

@ScoutHarris
Copy link
Contributor Author

Hey @danielebogo . Thanks for catching those. They've been fixed, and ready for another review please.

@ScoutHarris ScoutHarris requested a review from danielebogo May 30, 2019 17:18
Copy link
Contributor

@danielebogo danielebogo left a comment

Choose a reason for hiding this comment

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

LGTM! thanks for fixing this! :shipit:

@ScoutHarris ScoutHarris merged commit ec1c1ef into develop May 30, 2019
@ScoutHarris ScoutHarris deleted the fix/11798-no_data_spacing branch May 30, 2019 17:44
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.

[Stats Refresh] Extra space when 'No data for this period' shown
2 participants