diff options
| author | Pietro Gagliardi <[email protected]> | 2014-12-14 18:06:08 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-12-14 18:06:08 -0500 |
| commit | f4587005792b01bb18a031565da1eeab0f9409f3 (patch) | |
| tree | 634774af22cc4f3b13381d7b75a025a9a6e58b1c | |
| parent | e246a9bd5f2440332514743ef88d57b754132b0c (diff) | |
Fixed selection scrolling.
| -rw-r--r-- | wintable/new/select.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wintable/new/select.h b/wintable/new/select.h index 7ead86f..022fcd0 100644 --- a/wintable/new/select.h +++ b/wintable/new/select.h @@ -52,8 +52,8 @@ static void doselect(struct table *t, intptr_t row, intptr_t column) if (width > clientWidth) // TODO >= ? hscrollto(t, xpos); else - // TODO this formula is wrong - hscrollby(t, clientWidth - width); + // TODO don't use t->hpagesize here? depends if other code uses it + hscrollto(t, (xpos + width) - t->hpagesize); } // now redraw the old and new /rows/ |
