diff options
| author | Pietro Gagliardi <[email protected]> | 2015-02-18 03:40:47 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-02-18 03:40:47 -0500 |
| commit | 8730cbf1c4acf658213c362c6f6bd86a7816355c (patch) | |
| tree | 21bbae33cb7d2e9e435708885d5a440c30754ba5 /wintable/scroll.h | |
| parent | 9f8ae4051603d4d1bab02465c9662236644bb83d (diff) | |
"Fixed" the other Windows Table problem. Now to implement selection and fix the fonts...
Diffstat (limited to 'wintable/scroll.h')
| -rw-r--r-- | wintable/scroll.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wintable/scroll.h b/wintable/scroll.h index 9da2565..ba5a9f8 100644 --- a/wintable/scroll.h +++ b/wintable/scroll.h @@ -19,6 +19,10 @@ static void scrollto(struct table *t, int which, struct scrollParams *p, intptr_ pos = 0; if (pos > p->length - p->pagesize) pos = p->length - p->pagesize; + // TODO this shouldn't have been necessary but alas + // TODO the logic is really intended for the whole y origin thing in the scrollbar series; fix that + if (pos < 0) + pos = 0; // we don't want to scroll the header if (GetClientRect(t->hwnd, &scrollArea) == 0) |
