Skip to content

ctor ordering; fixed height for charts #45

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

Merged
merged 1 commit into from
Oct 5, 2018

Conversation

devoncarew
Copy link
Member

@devoncarew devoncarew commented Oct 5, 2018

A few different changes in here:

  • fix the chart heights to 98px; we'd previously relied on calculating it on first layout, but that could occasionally yield inconsistent heights (fix I'm seeing css / layout issues with the timeline overview #31)
  • re-order some ctor declarations to address a lint
  • add a dispose method to the Chart abstract class to better call out that it registers a global listener

@DanTup

@@ -69,4 +76,8 @@ abstract class LineChart<T> {
bool get isMounted {
return chartElement.element.parent != null;
}

void dispose() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is being called, but I presume that's because we currently never actually destroy this (only move it out/in the DOM when changing pages)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it's not called, but having it makes it slightly more clear that the object needs cleanup.

I'll add an issue for onMounted() and onUnmounted() lifecycle events (as useful, but not an immediate concern).

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.

I'm seeing css / layout issues with the timeline overview
2 participants