Fixed selection scrolling.
This commit is contained in:
parent
e246a9bd5f
commit
f458700579
|
@ -52,8 +52,8 @@ static void doselect(struct table *t, intptr_t row, intptr_t column)
|
||||||
if (width > clientWidth) // TODO >= ?
|
if (width > clientWidth) // TODO >= ?
|
||||||
hscrollto(t, xpos);
|
hscrollto(t, xpos);
|
||||||
else
|
else
|
||||||
// TODO this formula is wrong
|
// TODO don't use t->hpagesize here? depends if other code uses it
|
||||||
hscrollby(t, clientWidth - width);
|
hscrollto(t, (xpos + width) - t->hpagesize);
|
||||||
}
|
}
|
||||||
|
|
||||||
// now redraw the old and new /rows/
|
// now redraw the old and new /rows/
|
||||||
|
|
Loading…
Reference in New Issue