fixed alignment of lists

This commit is contained in:
louis 2016-05-28 13:21:32 +02:00
parent 2b1d941f39
commit 75668612be

View File

@ -165,7 +165,7 @@ void cViewList::PreCache(void) {
step = width / numElements; step = width / numElements;
} }
int start = 0; int start = y;
if (align == eAlign::center) { if (align == eAlign::center) {
if (orientation == eOrientation::vertical) { if (orientation == eOrientation::vertical) {
start = y + (height - numElements * step) / 2; start = y + (height - numElements * step) / 2;