rtyley/agit — Issue #65: Diff bar display error
Author: agryson
Created: 2012-02-28 21:35:40+00:00
State: open

When opening up a file in diff view, the diff slider appears at 100% (only show the current state) but the file is displayed as if it were at 50% (you see both old and new code).

I think this is because of line 65 in *agit/src/main/java/com/madgag/agit/diff/DiffSliderView.java* where you have:

```java
seekBar.setProgress(seekBar.getMax());
```

Unless I'm mistaken (and I may be), it should read:

```java
seekBar.setProgress(seekBar.getMax()/2);
```

so that the seekbar is at 50% when it's initialized to correctly reflect what's visible in the preview.

If you're very busy I'll try it out myself and submit a pull request once it's squashed, just thought to put the issue here just in case.