1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 22:28:02 +01:00

fixed bug on previous bug fix for tableview overflow bug..

(yeh, i also think cvs should send only 1 mail/day to the list..)
This commit is contained in:
kojima
2001-05-17 23:34:47 +00:00
parent a4486f0cd9
commit 7d64e19f5a

View File

@@ -232,7 +232,7 @@ static void scrollToPoint(WMTableView *table, int x, int y)
int i;
float value, prop;
if (size.width < W_VIEW_WIDTH(table->tableView)) {
if (size.width > W_VIEW_WIDTH(table->tableView)) {
prop = (float)size.width / (float)W_VIEW_WIDTH(table->tableView);
value = x * (float)(size.width - W_VIEW_WIDTH(table->tableView));
} else {
@@ -242,7 +242,7 @@ static void scrollToPoint(WMTableView *table, int x, int y)
WMSetScrollerParameters(table->hscroll, value, prop);
if (size.height < W_VIEW_HEIGHT(table->tableView)) {
if (size.height > W_VIEW_HEIGHT(table->tableView)) {
prop = (float)size.height / (float)W_VIEW_HEIGHT(table->tableView);
value = y * (float)(size.height - W_VIEW_HEIGHT(table->tableView));
} else {