mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-20 17:31:08 +00:00
[qwaq] Fix scrollbar thumbtab covering button
Caused by an out-by-one error.
This commit is contained in:
parent
d23c9582f1
commit
2a38135dd9
1 changed files with 2 additions and 2 deletions
|
@ -113,9 +113,9 @@ position_tab (ScrollBar *self)
|
|||
Point o = [self.thumbTab origin];
|
||||
if (self.range > 0) {
|
||||
if (self.vertical) {
|
||||
p.y = 1 + self.index * (self.ylen - 2) / (self.range - 1);
|
||||
p.y = 1 + self.index * (self.ylen - 3) / (self.range - 1);
|
||||
} else {
|
||||
p.x = 1 + self.index * (self.xlen - 2) / (self.range - 1);
|
||||
p.x = 1 + self.index * (self.xlen - 3) / (self.range - 1);
|
||||
}
|
||||
}
|
||||
[self.thumbTab move:{p.x - o.x, p.y - o.y}];
|
||||
|
|
Loading…
Reference in a new issue