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

Show latest values on startup #145

Open
ronsrebro opened this issue Aug 22, 2018 · 1 comment
Open

Show latest values on startup #145

ronsrebro opened this issue Aug 22, 2018 · 1 comment

Comments

@ronsrebro
Copy link

First, amazing work on this.

What would be super helpful is to be able to scroll the graph all the way to the end on startup.

I've added a variable shouldStartAtEnd (need a better name)

and then added this code to the setup function

if shouldStartAtEnd {
            self.offsetWidth = self.contentSize.width - viewport.width
        }

right before


 // Set the scrollview offset.
        self.contentOffset.x = self.offsetWidth
@patLoeber
Copy link

Hi,
why don't you just set:
graphView.direction =ScrollableGraphViewDirection.rightToLeft

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

No branches or pull requests

2 participants