[Taranis] Scrollbar wrong position sometimes in Model Setup
This commit is contained in:
@@ -546,7 +546,7 @@ void check(const char *name, check_event_t event, uint8_t curr, const MenuFuncP
|
|||||||
if (horTab) {
|
if (horTab) {
|
||||||
linesCount = 0;
|
linesCount = 0;
|
||||||
for (int i=0; i<rowcount; i++) {
|
for (int i=0; i<rowcount; i++) {
|
||||||
if (i>=horTabMax || horTab[i] != HIDDEN_ROW) {
|
if (i>horTabMax || horTab[i] != HIDDEN_ROW) {
|
||||||
linesCount++;
|
linesCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -577,7 +577,7 @@ void check(const char *name, check_event_t event, uint8_t curr, const MenuFuncP
|
|||||||
else {
|
else {
|
||||||
linesCount = s_pgOfs + NUM_BODY_LINES;
|
linesCount = s_pgOfs + NUM_BODY_LINES;
|
||||||
for (int i=lastLine; i<rowcount; i++) {
|
for (int i=lastLine; i<rowcount; i++) {
|
||||||
if (i>=horTabMax || horTab[i] != HIDDEN_ROW) {
|
if (i>horTabMax || horTab[i] != HIDDEN_ROW) {
|
||||||
linesCount++;
|
linesCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user