fixed the issue reported by sander (gaps at left columns button due to round-offs)
1c620d27
1 file(s) · +4 −1
| 106 | 106 | c->x = sx + mw; |
|
| 107 | 107 | c->y = sy + (i - 1) * h + bh; |
|
| 108 | 108 | c->w = w - 2; |
|
| 109 | - | c->h = h - 2; |
|
| 109 | + | if(i + 1 == n) |
|
| 110 | + | c->h = sh - c->y - 2; |
|
| 111 | + | else |
|
| 112 | + | c->h = h - 2; |
|
| 110 | 113 | } |
|
| 111 | 114 | else { /* fallback if h < bh */ |
|
| 112 | 115 | c->x = sx + mw; |